Sha256: db96e77f54687b48917b0199f68e7cf841d140d6f8c6c929f1909e7cd8ed072f

Contents?: true

Size: 309 Bytes

Versions: 26

Compression:

Stored size: 309 Bytes

Contents

require 'spec_helper'

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

26 entries across 26 versions & 1 rubygems

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