Created
July 16, 2011 08:00
-
-
Save colomon/1086118 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for 0, 0 / 1, 0.0e0, 1, 50, 60.0e0, 99.99 -> $x { | |
is(abs($x), $x, "got the right absolute value for $x"); | |
is($x.abs, $x, 'got the right absolute value for $x='~$x); | |
is (abs($x)).WHAT, $x.WHAT, 'type of abs($x) agrees with type of $x'; | |
is $x.abs.WHAT, $x.WHAT, 'type of $x.abs agrees with type of $x'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment