make tests green again

This commit is contained in:
Andreas Rumpf 2017-11-01 09:13:07 +01:00
commit e09b2d898d

View file

@ -7,7 +7,7 @@ discard """
# bug #5430 # bug #5430
proc random*[T](x: Slice[T, T]): T = proc random*[T](x: Slice[T]): T =
## For a slice `a .. b` returns a value in the range `a .. b-1`. ## For a slice `a .. b` returns a value in the range `a .. b-1`.
result = int(x.b - x.a) + x.a result = int(x.b - x.a) + x.a