Permalink
Browse files

[spec]

 * unfudged quite some passing tests
 * fixed tests in root.t
 * fuzzed with fudging in assign.t


git-svn-id: http://svn.pugscode.org/pugs@20952 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent a6cebf5 commit 3488142a804a470c8db679bb6926063eee545842 moritz committed Jun 22, 2008
Showing with 140 additions and 40 deletions.
  1. +4 −5 S02-literals/radix.t
  2. +109 −6 S03-operators/assign.t
  3. +10 −11 S16-unfiled/slurp.t
  4. +2 −0 S29-list/map.t
  5. +2 −2 S29-num/rand.t
  6. +13 −11 S29-num/roots.t
  7. +0 −1 S29-num/sqrt.t
  8. +0 −2 S29-str/capitalize.t
  9. +0 −1 S29-str/lcfirst.t
  10. +0 −1 S29-str/ucfirst.t
View
@@ -160,7 +160,6 @@ is(:2<1>, 1, 'got the correct int value from bin 1');
is(:2<10>, 2, 'got the correct int value from bin 10');
is(:2<1010>, 10, 'got the correct int value from bin 1010');
-#?rakudo 1 skip "can't parse"
is(
:2<11111111111111111111111111111111>,
0xFFFFFFFF,
@@ -180,23 +179,23 @@ is(
}
# L<S02/Literals/"not clear whether the exponentiator should be 10 or the radix">
-#?rakudo 1 skip "can't parse"
-isnt( eval("0b1.1e10"), 1536, 'Ambiguous, illegal syntax doesn\'t work' );
+eval_dies_ok '0b1.1e10', 'Ambiguous, illegal syntax doesn\'t work';
# L<S02/Literals/"and this makes it explicit">
# probably don't need a test, but I'll write tests for any example :)
-#?rakudo 3 skip "can't parse"
+#?rakudo 3 todo "base 2 literals with fractional numbers"
is( :2<1.1> * 2 ** 10, 1536, 'binary number to power of 2' );
is( :2<1.1> * 10 ** 10, 15_000_000_000, 'binary number to power of 10' );
is( :2<1.1> * :2<10> ** :2<10>, 6, 'multiplication and exponentiation' );
# L<S02/Literals/"So we write those as">
# these should be the same values as the previous tests
#?pugs todo 'feature'
-#?rakudo skip "can't parse"
{
+ #?rakudo 2 todo "base 2 literals with fractional numbers"
is( :2<1.1*2**10>, 1536, 'Power of two in <> works');
is( :2<1.1*10**10>, 15_000_000_000, 'Power of ten in <> works');
+ #?rakudo skip "can't parse"
is( eval('2«1.1*:2<10>**:2<10>»'), 6, 'Powers of two in <<>> works');
}
Oops, something went wrong.

0 comments on commit 3488142

Please sign in to comment.