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