Sha256: f26065ad863c88952b74c9e1f019ff9dae2b8e6cce9760ba22822d9240a955e3

Contents?: true

Size: 499 Bytes

Versions: 10

Compression:

Stored size: 499 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "helper"))

class DotAccessorTest < Johnson::NodeTestCase
  def test_expression_statement
    assert_sexp(
                [[:dot_accessor, [:name, "bar"], [:name, "foo"]]],
                @parser.parse('foo.bar;')
               )
    assert_sexp(
                [[:dot_accessor, [:name, "bar"], [:name, "foo"]]],
                @parser.parse('foo.bar')
               )
    assert_ecma('foo.bar;', @parser.parse('foo.bar;'))
  end
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
johnson19-2.0.0.pre3 test/johnson/generic/nodes/dot_accessor_test.rb
pre-johnson-2.0.0 test/johnson/generic/nodes/dot_accessor_test.rb
johnson-2.0.0.pre3 test/johnson/generic/nodes/dot_accessor_test.rb
johnson-2.0.0.pre2 test/johnson/generic/nodes/dot_accessor_test.rb
johnson-2.0.0.pre1 test/johnson/generic/nodes/dot_accessor_test.rb
johnson-2.0.0.pre0 test/johnson/generic/nodes/dot_accessor_test.rb
smparkes-johnson-1.1.2.6 test/johnson/generic/nodes/dot_accessor_test.rb
smparkes-johnson-1.1.2.5 test/johnson/generic/nodes/dot_accessor_test.rb
smparkes-johnson-1.1.2.4 test/johnson/generic/nodes/dot_accessor_test.rb
smparkes-johnson-1.1.2.3 test/johnson/generic/nodes/dot_accessor_test.rb