Sha256: 69cfafddf9c4d4d954857756d18e021ee2b16851a1867360003d4074a7a45ba8
Contents?: true
Size: 417 Bytes
Versions: 5
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, [:sym, :a]] end it "appends multiple parts onto end of list" do opal_parse("undef a, b").should == [:undef, [:sym, :a], [:sym, :b]] end it "can take symbols or fitems" do opal_parse("undef :foo").should == [:undef, [:sym, :foo]] end end
Version data entries
5 entries across 5 versions & 1 rubygems