Sha256: aa0fe8e953125214e70f4505aeb247d25d4dcb6589513bd1c29bc1b260e28db6

Contents?: true

Size: 380 Bytes

Versions: 6

Compression:

Stored size: 380 Bytes

Contents

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

describe "The false keyword" do
  it "should always return s(:false)" do
    opal_parse("false").should == [:false]
  end

  it "cannot be assigned to" do
    lambda {
      opal_parse "true = 1"
    }.should raise_error(Exception)

    lambda {
      opal_parse "true = true"
    }.should raise_error(Exception)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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