Sha256: 2c51ca626d33522803dd807351aeaaec7ab59e21a9601574ee55098bbe6123a0
Contents?: true
Size: 367 Bytes
Versions: 101
Compression:
Stored size: 367 Bytes
Contents
describe "A Symbol literal" do it "can be an empty string" do c = :'' c.should be_kind_of(Symbol) c.inspect.should == ':""' end # These weren't allowed on 1.8 it "can be :!, :!=, or :!~" do %w{'!', '!=', '!~'}.each do |sym| lambda { sym.to_sym }.should_not raise_error(SyntaxError) sym.to_sym.to_s.should == sym end end end
Version data entries
101 entries across 101 versions & 5 rubygems