Permalink
Browse files

add more range numification tests

pmichaud++
  • Loading branch information...
1 parent a2664ea commit 13c603596a321e77de1e8a01e5e2dd66d6c766ff @coke coke committed Mar 29, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 S02-types/range.t
View
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 131;
+plan 133;
# basic Range
# L<S02/Immutable types/A pair of Ordered endpoints>
@@ -90,13 +90,15 @@ ok(('a'..'zz').ACCEPTS('ax'), 'str in range');
is(+(6..6), 1, 'numification');
is(+(6^..6), 0, 'numification');
is(+(6..^6), 0, 'numification');
+is(+(6..^6.1), 1, 'numification');
is(+(6..8), 3, 'numification');
is(+(1^..10), 9, 'numification');
is(+(1..^10), 9, 'numification');
is(+(1^..^10), 8, 'numification');
is(+(10..9), 0, 'numification');
is(+(1.2..4), 3, 'numification');
is(+(1..^3.3), 3, 'numification');
+is(+(2.3..3.1), 1, 'numification');
is(+Range, 0, 'type numification');
# immutability

0 comments on commit 13c6035

Please sign in to comment.