Sha256: 491b938aefe457f07886ae49a2d414bf17d94f6cf23a0d1800253c236bff81e0

Contents?: true

Size: 417 Bytes

Versions: 26

Compression:

Stored size: 417 Bytes

Contents

require 'spec_helper'

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

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

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

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
opal-0.4.3 spec/parser/undef_spec.rb
opal-0.4.2 spec/parser/undef_spec.rb
opal-0.4.1 spec/parser/undef_spec.rb
opal-0.4.0 spec/parser/undef_spec.rb
opal-0.3.44 spec/parser/undef_spec.rb
opal-0.3.43 spec/parser/undef_spec.rb
opal-0.3.42 spec/grammar/undef_spec.rb
opal-0.3.41 spec/grammar/undef_spec.rb
opal-0.3.40 spec/grammar/undef_spec.rb
opal-0.3.39 spec/grammar/undef_spec.rb
opal-0.3.38 spec/grammar/undef_spec.rb
opal-0.3.37 spec/grammar/undef_spec.rb
opal-0.3.36 spec/grammar/undef_spec.rb
opal-0.3.35 spec/grammar/undef_spec.rb
opal-0.3.34 spec/grammar/undef_spec.rb
opal-0.3.33 spec/grammar/undef_spec.rb
opal-0.3.32 spec/grammar/undef_spec.rb
opal-0.3.31 spec/grammar/undef_spec.rb
opal-0.3.30 spec/grammar/undef_spec.rb
opal-0.3.29 spec/grammar/undef_spec.rb