Sha256: 428f9cb66ab64a49516dbebb7f1f46fc70e7d2120b251b1822826bf04d870ed9
Contents?: true
Size: 529 Bytes
Versions: 15
Compression:
Stored size: 529 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 it "can take multiple symbols" do parsed("undef :a, :b").should == [:undef, [:sym, :a], [:sym, :b]] end end
Version data entries
15 entries across 15 versions & 1 rubygems