Sha256: f5b385d0059fa1614af1e6c749e7aa86eb198836aa51870f9a94a8a15776760b

Contents?: true

Size: 416 Bytes

Versions: 18

Compression:

Stored size: 416 Bytes

Contents

require 'support/parser_helpers'

describe "The undef keyword" do
  it "returns s(:undef) with the argument as an s(:lit)" do
    parsed("undef a").should == [:undef, [:sym, :a]]
  end

  it "appends multiple parts onto end of list" do
    parsed("undef a, b").should == [:undef, [:sym, :a], [:sym, :b]]
  end

  it "can take symbols or fitems" do
    parsed("undef :foo").should == [:undef, [:sym, :foo]]
  end
end

Version data entries

18 entries across 18 versions & 3 rubygems

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