Sha256: 72215e929d3b3a0aa36140f3ef0d43cffc18ba1d23ea09deef38ff71ca3e3718
Contents?: true
Size: 376 Bytes
Versions: 5
Compression:
Stored size: 376 Bytes
Contents
require 'spec_helper' describe "Global variables" do it "should be returned as s(:gvar)" do opal_parse("$foo").should == [:gvar, :$foo] opal_parse("$:").should == [:gvar, :$:] end it "should return s(:gasgn) on assignment" do opal_parse("$foo = 1").should == [:gasgn, :$foo, [:int, 1]] opal_parse("$: = 1").should == [:gasgn, :$:, [:int, 1]] end end
Version data entries
5 entries across 5 versions & 1 rubygems