Permalink
Browse files

[t/spec] check that the rounder functions return Int values (RT #61526)

git-svn-id: http://svn.pugscode.org/pugs@24494 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
moritz
moritz committed Dec 19, 2008
1 parent 5f80b08 commit 6e20293fd1dda91ad30e00cc81f48799e7bbf064
Showing with 7 additions and 1 deletion.
  1. +7 −1 S29-num/rounders.t
View
@@ -1,6 +1,6 @@
use v6;
use Test;
-plan 36;
+plan 40;
# L<S29/Num/"=item round">
# L<S29/Num/"=item floor">
@@ -49,3 +49,9 @@ for %tests.keys.sort -> $type {
}
}
+for %tests.keys.sort -> $t {
+ isa_ok eval("{$t}(1.1)"), Int, "rounder $t returns an int";
+
+}
+
+# vim: ft=perl6

0 comments on commit 6e20293

Please sign in to comment.