Sha256: 13a8ede015308242670ba3721cfd09487805e58d52a34e1e95beebe0a5e1971b

Contents?: true

Size: 343 Bytes

Versions: 6

Compression:

Stored size: 343 Bytes

Contents

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

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

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