diff --git a/src/org/rascalmpl/library/lang/rascal/tests/library/analysis/statistics/RangeUtils.rsc b/src/org/rascalmpl/library/lang/rascal/tests/library/analysis/statistics/RangeUtils.rsc index 86472fb35a9..d87ea05c3f9 100644 --- a/src/org/rascalmpl/library/lang/rascal/tests/library/analysis/statistics/RangeUtils.rsc +++ b/src/org/rascalmpl/library/lang/rascal/tests/library/analysis/statistics/RangeUtils.rsc @@ -46,4 +46,5 @@ within the range as much as possible. list[&T <: num] assureRange(list[&T <: num] nums, &T <: num low, &T <: num high) = [assureRange(n, low, high) | n <- nums]; -test bool assureRangeListTest() = assureRange([0..10], 100, 110) == [100..110]; \ No newline at end of file +test bool assureRangeListTest() = assureRange([0..10], 100, 110) == [100..110]; +test bool assureRangeListTestNeg() = assureRange([0..-10], 100, 110) == [100, *[109,108,107,106,105,104,103,102,101]]; \ No newline at end of file