Sha256: a0caa07e5dfbb661dadd0fbc42fd8a457d6a723a97173e86a4fde4779d73fe38

Contents?: true

Size: 349 Bytes

Versions: 6

Compression:

Stored size: 349 Bytes

Contents

require File.expand_path('../../spec_helper', __FILE__)

describe "The and statement" do
  it "should always return s(:and)" do
    opal_parse("1 and 2").should == [:and, [:lit, 1], [:lit, 2]]
  end
end

describe "The && expression" do
  it "should always return s(:and)" do
    opal_parse("1 && 2").should == [:and, [:lit, 1], [:lit, 2]]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opal-0.3.20 spec/grammar/and_spec.rb
opal-0.3.19 spec/grammar/and_spec.rb
opal-0.3.18 spec/grammar/and_spec.rb
opal-0.3.17 test/grammar/and_spec.rb
opal-0.3.16 spec/grammar/and_spec.rb
opal-0.3.15 spec/grammar/and_spec.rb