Skip to content

Instantly share code, notes, and snippets.

@colomon
Created July 16, 2011 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colomon/1086118 to your computer and use it in GitHub Desktop.
Save colomon/1086118 to your computer and use it in GitHub Desktop.
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