Sha256: 197f451b9e6fdd15788090aed5ae639f2d16ff5efec2e41ba1359c25f04cef8f

Contents?: true

Size: 315 Bytes

Versions: 5

Compression:

Stored size: 315 Bytes

Contents

require 'spec_helper'

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
opal-0.5.5 spec/opal/parser/and_spec.rb
opal-0.5.4 spec/opal/parser/and_spec.rb
opal-0.5.2 spec/opal/parser/and_spec.rb
opal-0.5.0 spec/opal/parser/and_spec.rb
opal-0.4.4 spec/parser/and_spec.rb