Skip to content

Commit

Permalink
Mark unicode parsing as not compliant on jruby
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Mar 22, 2016
1 parent 23d73a5 commit 3782e9d
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions spec/lib/parser/variables_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,16 @@
parsed("FOO = BAR").should == [:cdecl, :FOO, [:const, :BAR]]
end

it "parses unicode constants" do
parsed("FOOλ = 1").should == [:cdecl, :FOOλ, [:int, 1]]
end

it "parses unicode local variables" do
parsed("λ = 1").should == [:lasgn, , [:int, 1]]
parsed("fooλ = 1").should == [:lasgn, :fooλ, [:int, 1]]
parsed("λfoo = 1").should == [:lasgn, :λfoo, [:int, 1]]
not_compliant_on :jruby do # REF: https://github.com/jruby/jruby/issues/3719
it "parses unicode constants" do
parsed("FOOλ = 1").should == [:cdecl, :FOOλ, [:int, 1]]
end

it "parses unicode local variables" do
parsed("λ = 1").should == [:lasgn, , [:int, 1]]
parsed("fooλ = 1").should == [:lasgn, :fooλ, [:int, 1]]
parsed("λfoo = 1").should == [:lasgn, :λfoo, [:int, 1]]
end
end
end

0 comments on commit 3782e9d

Please sign in to comment.