Sha256: 081316cfbee48b5b614c88bb056f458db8b86c4a79c6ff1d3e3a3d08438d052d

Contents?: true

Size: 346 Bytes

Versions: 31

Compression:

Stored size: 346 Bytes

Contents

require 'spec_helper'

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

31 entries across 31 versions & 1 rubygems

Version Path
opal-0.5.5 spec/opal/parser/false_spec.rb
opal-0.5.4 spec/opal/parser/false_spec.rb
opal-0.5.2 spec/opal/parser/false_spec.rb
opal-0.5.0 spec/opal/parser/false_spec.rb
opal-0.4.4 spec/parser/false_spec.rb
opal-0.4.3 spec/parser/false_spec.rb
opal-0.4.2 spec/parser/false_spec.rb
opal-0.4.1 spec/parser/false_spec.rb
opal-0.4.0 spec/parser/false_spec.rb
opal-0.3.44 spec/parser/false_spec.rb
opal-0.3.43 spec/parser/false_spec.rb
opal-0.3.42 spec/grammar/false_spec.rb
opal-0.3.41 spec/grammar/false_spec.rb
opal-0.3.40 spec/grammar/false_spec.rb
opal-0.3.39 spec/grammar/false_spec.rb
opal-0.3.38 spec/grammar/false_spec.rb
opal-0.3.37 spec/grammar/false_spec.rb
opal-0.3.36 spec/grammar/false_spec.rb
opal-0.3.35 spec/grammar/false_spec.rb
opal-0.3.34 spec/grammar/false_spec.rb