Sha256: ee82eb35ff8a612774600d6c09649be6bf1e3e2e72299a249daf2071002f7697

Contents?: true

Size: 253 Bytes

Versions: 5

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, [:int, 1]]
    opal_parse("a = 1; b = 2").should == [:block, [:lasgn, :a, [:int, 1]], [:lasgn, :b, [:int, 2]]]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
opal-0.5.5 spec/opal/parser/lasgn_spec.rb
opal-0.5.4 spec/opal/parser/lasgn_spec.rb
opal-0.5.2 spec/opal/parser/lasgn_spec.rb
opal-0.5.0 spec/opal/parser/lasgn_spec.rb
opal-0.4.4 spec/parser/lasgn_spec.rb