summaryrefslogtreecommitdiff
path: root/bootstraptest/test_syntax.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-06 07:46:57 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-06 07:46:57 +0000
commit1951ef76cec33f2e6abcdb1a017972d53c032cfb (patch)
treedd246e9e254c9f8170acec6dd1c524f1ced589d6 /bootstraptest/test_syntax.rb
parent1a300415363ed3b87a7210aaed79623510e1fc9e (diff)
* parse.y (value_expr_gen): fix to cause "void value expression"
when jump expression such as "next" are shown on value_expr(). [ruby-dev:31119] * bootstraptest/test_syntax.rb: fix to above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_syntax.rb')
-rw-r--r--bootstraptest/test_syntax.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstraptest/test_syntax.rb b/bootstraptest/test_syntax.rb
index 476311d..db10e12 100644
--- a/bootstraptest/test_syntax.rb
+++ b/bootstraptest/test_syntax.rb
@@ -538,8 +538,8 @@ assert_equal %q{0}, %q{[*0];0} # [ruby-dev:31102]
assert_syntax_error "syntax error, unexpected ')'", %q{v0,(*,v1,) = 0} # [ruby-dev:31104]
assert_equal %q{1}, %q{class << (ary=[]); def []; 0; end; def []=(x); super(0,x);end;end; ary[]+=1} # [ruby-dev:31110]
assert_syntax_error "Can't set variable $1", %q{0..$1=1} # [ruby-dev:31118]
-assert_equal %q{1}, %q{1.times{1+(1&&next)}} # [ruby-dev:31119]
-assert_equal %q{1}, %q{x=-1;loop{x+=1&&redo if (x+=1).zero?}} # [ruby-dev:31119]
+assert_syntax_error "void value expression", %q{1.times{1+(1&&next)}} # [ruby-dev:31119]
+assert_syntax_error "void value expression", %q{x=-1;loop{x+=1&&redo if (x+=1).zero?}} # [ruby-dev:31119]
assert_syntax_error %q{syntax error, unexpected $end}, %q{!} # [ruby-dev:31243]
assert_equal %q{[nil]}, %q{[()]} # [ruby-dev:31252]
assert_equal %q{true}, %q{!_=()} # [ruby-dev:31263]