Permalink
Browse files

Add failing/exploding tests for parsing negative numbers in parens, l…

…ateau++
  • Loading branch information...
leto committed Oct 13, 2011
1 parent fa2ff00 commit 3f1ad535da746e93acd650102634b2aea14668a8
Showing with 21 additions and 1 deletion.
  1. +21 −1 t/01-stmts.t
View
@@ -1,6 +1,6 @@
# If this is to test the basic statements then we can't really use Test.rb
# Although of course Test.rb itself contains all the statements tested
-puts "1..8"
+puts "1..12"
if 1 then
puts "ok 1"
@@ -54,3 +54,23 @@ if emptyString
else
puts "not ok 8 # an empty string '' should evaluate to true - Issue 28"
end
+
+# test parrentheses ()
+if (1)
+ puts "ok 9"
+else
+ puts "not ok 9"
+end
+
+if (-1)
+ puts "ok 10"
+else
+ puts "not ok 10"
+end
+
+(-1.0)
+puts "ok 11"
+
+(-1)
+puts "ok 12"
+

0 comments on commit 3f1ad53

Please sign in to comment.