Sha256: 5d9098b9e12461ce8199e9c571bc4964a2b0c3daee43f02892b60e405f6d7ae5
Contents?: true
Size: 388 Bytes
Versions: 26
Compression:
Stored size: 388 Bytes
Contents
require 'spec_helper' describe "Constants" do it "should always become a s(:const)" do opal_parse("FOO").should == [:const, :FOO] opal_parse("BAR").should == [:const, :BAR] end it "should be returned as s(:cdecl) on assignment" do opal_parse("FOO = 1").should == [:cdecl, :FOO, [:lit, 1]] opal_parse("FOO = BAR").should == [:cdecl, :FOO, [:const, :BAR]] end end
Version data entries
26 entries across 26 versions & 1 rubygems