Permalink
Browse files

[t] move parsing_bool.t to spec/, clean up wrong try { } usage

git-svn-id: http://svn.pugscode.org/pugs@25923 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent 681c0b6 commit ea3090ac73e524a726eb7b6767d1cdad0dbe8e26 moritz committed Mar 19, 2009
Showing with 12 additions and 0 deletions.
  1. +12 −0 S02-builtin_data_types/parsing-bool.t
@@ -0,0 +1,12 @@
+use v6;
+
+use Test;
+
+plan 4;
+
+is (try { 42 or Bool::False }), 42, "Bool::False as RHS";
+#?pugs todo 'parsing'
+is (try { Bool::False or 42 }), 42, "Bool::False as LHS";
+
+is (try { 42 or False }), 42, "False as RHS";
+is (try { False or 42 }), 42, "False as LHS";

0 comments on commit ea3090a

Please sign in to comment.