Sha256: ed91f1e3c6d7fbcda388f3172f962255cadff6c9c9042d6ecccbce277865a16f

Contents?: true

Size: 459 Bytes

Versions: 10

Compression:

Stored size: 459 Bytes

Contents

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

class ExportTest < Johnson::NodeTestCase
  def test_export
    begin
      assert_sexp([[:export, [[:name, "name1"], [:name, "name2"]]]],
                  @parser.parse('export name1, name2;'))
      assert_ecma('export name1, name2;', @parser.parse('export name1, name2;'))
    rescue Johnson::Parser::SyntaxError; end # okay if an interpreter doesn't implement import/export
  end
end

Version data entries

10 entries across 10 versions & 4 rubygems

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