test suite test range
test case test empty()
the range : base range • new(68, 68)
assert the rangeis empty
assert the rangesize == 0
assert the rangebegin == 68
assert the rangeend == 68
new range : the rangeslice(0, 0)
assert new rangeis empty
assert !new rangeis not empty
assert new rangesize == 0
assert new rangebegin == 68
assert new rangeend == 68
test case test simple range()
the range : base range • new(5, 8)
assert the rangebegin == 5
assert the rangeend == 8
assert the rangesize == 3
assert !the rangeis empty
assert the rangeis not empty
assert the rangefirst == 5
assert the rangelast == 7
assert the range[0] == 5
assert the range[1] == 6
assert the range[2] == 7
assert the rangeelements == the range
assert the rangefrozen copy() == the range
the slice : the rangeskip(1)
assert the slicesize == 2
assert the slicebegin == 6
assert the sliceend == 8
assert the slicefirst == 6
assert the slicelast == 7
the slice2 : the rangeslice(1, 1)
assert the slice2size == 0
assert the slice2is empty
assert the slice2begin == 6
assert the slice2end == 6
reversed : the rangereverse()
assert reversedsize == 3
assert !reversedis empty
assert reversedis not empty
assert reversedfirst == 7
assert reversedlast == 5
assert reversed[0] == 7
assert reversed[1] == 6
assert reversed[2] == 5