Sha256: 64b2a185444d8792384504150d055ff95da889f517a073ac2555aebf58a5867b

Contents?: true

Size: 253 Bytes

Versions: 26

Compression:

Stored size: 253 Bytes

Contents

require 'spec_helper'

describe "Local assignment" do
  it "returns an s(:lasgn)" do
    opal_parse("a = 1").should == [:lasgn, :a, [:lit, 1]]
    opal_parse("a = 1; b = 2").should == [:block, [:lasgn, :a, [:lit, 1]], [:lasgn, :b, [:lit, 2]]]
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
opal-0.4.3 spec/parser/lasgn_spec.rb
opal-0.4.2 spec/parser/lasgn_spec.rb
opal-0.4.1 spec/parser/lasgn_spec.rb
opal-0.4.0 spec/parser/lasgn_spec.rb
opal-0.3.44 spec/parser/lasgn_spec.rb
opal-0.3.43 spec/parser/lasgn_spec.rb
opal-0.3.42 spec/grammar/lasgn_spec.rb
opal-0.3.41 spec/grammar/lasgn_spec.rb
opal-0.3.40 spec/grammar/lasgn_spec.rb
opal-0.3.39 spec/grammar/lasgn_spec.rb
opal-0.3.38 spec/grammar/lasgn_spec.rb
opal-0.3.37 spec/grammar/lasgn_spec.rb
opal-0.3.36 spec/grammar/lasgn_spec.rb
opal-0.3.35 spec/grammar/lasgn_spec.rb
opal-0.3.34 spec/grammar/lasgn_spec.rb
opal-0.3.33 spec/grammar/lasgn_spec.rb
opal-0.3.32 spec/grammar/lasgn_spec.rb
opal-0.3.31 spec/grammar/lasgn_spec.rb
opal-0.3.30 spec/grammar/lasgn_spec.rb
opal-0.3.29 spec/grammar/lasgn_spec.rb