Sha256: 513727d17f3eb390ef2a7295601d454caef466b59a7fbbc6d9639d105e484827
Contents?: true
Size: 451 Bytes
Versions: 6
Compression:
Stored size: 451 Bytes
Contents
require File.expand_path('../../spec_helper', __FILE__) 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
6 entries across 6 versions & 1 rubygems