Sha256: 2fdc878cc4550e9dc538d92039b402ccd99c4570a48c1b9bdb9fb00d13b403fa

Contents?: true

Size: 318 Bytes

Versions: 39

Compression:

Stored size: 318 Bytes

Contents

require 'support/parser_helpers'

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

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

Version data entries

39 entries across 39 versions & 3 rubygems

Version Path
opal-0.9.0.beta2 spec/lib/parser/and_spec.rb
opal-0.9.0.beta1 spec/lib/parser/and_spec.rb
opal-0.8.1 spec/lib/parser/and_spec.rb
opal-0.8.1.rc1 spec/lib/parser/and_spec.rb
opal-wedge-0.9.0.dev spec/lib/parser/and_spec.rb
opal-0.8.0 spec/lib/parser/and_spec.rb
opal-0.8.0.rc3 spec/lib/parser/and_spec.rb
opal-0.8.0.rc2 spec/lib/parser/and_spec.rb
opal-0.8.0.rc1 spec/lib/parser/and_spec.rb
opal-0.8.0.beta1 spec/lib/parser/and_spec.rb
opal-0.7.2 spec/lib/parser/and_spec.rb
opal-0.7.1 spec/lib/parser/and_spec.rb
opal-0.7.0 spec/lib/parser/and_spec.rb
opal-0.7.0.rc1 spec/lib/parser/and_spec.rb
opal-0.7.0.beta3 spec/lib/parser/and_spec.rb
opal-0.7.0.beta2 spec/lib/parser/and_spec.rb
opal-cj-0.7.0.beta2 spec/lib/parser/and_spec.rb
opal-cj-0.7.0.beta1 spec/lib/parser/and_spec.rb
opal-0.7.0.beta1 spec/lib/parser/and_spec.rb