Sha256: 691c8cdfbcde79338c9147f876977978798ed9e883076df8dd1b499077d4a9df

Contents?: true

Size: 302 Bytes

Versions: 26

Compression:

Stored size: 302 Bytes

Contents

require 'spec_helper'

describe "Instance variable assignment" do
  it "always returns an s(:iasgn)" do
    opal_parse("@a = 1").should == [:iasgn, :@a, [:lit, 1]]
    opal_parse("@A = 1").should == [:iasgn, :@A, [:lit, 1]]
    opal_parse("@class = 1").should == [:iasgn, :@class, [:lit, 1]]
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

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