Changeset 383
- Timestamp:
- 07/05/08 17:23:02 (5 months ago)
- Files:
-
- trunk/tools/tools/base.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tools/tools/base.d
r382 r383 1059 1059 return res; 1060 1060 } 1061 bool opIn_r(U)(U other) { 1062 bool res = !!(other in values[0]); 1063 foreach (value; values[1 .. $]) 1064 res = mixin("res "~OP~" !!(other in value)"); 1065 return res; 1066 } 1061 1067 } 1062 1068 … … 1099 1105 mustEqual("BoolSetTestOr", 2 /or/ 3 == 3, true); 1100 1106 mustEqual("BoolSetTestAnd", AndSet(2, 3) == 3, false); 1101 mustEqual("RangeInclTest", 5 in Range[ 2..5].endIncl, true);1107 mustEqual("RangeInclTest", 5 in Range[1..3].endIncl /or/ Range[2..5].endIncl, true); 1102 1108 } 1103 1109
