Sha256: 8ec8ec6aa5c3c60e430667b076ba8dfc1295c0f3e96cbf83cd735f418ea1a9de
Contents?: true
Size: 464 Bytes
Versions: 13
Compression:
Stored size: 464 Bytes
Contents
require 'spec_helper' require 'kl/primitives/symbols' describe Kl::Primitives::Symbols do include Kl::Primitives::Symbols describe "intern" do it "returns boolean true for 'true'" do intern("true").should == true end it "returns boolean false for 'false'" do intern("false").should == false end it "returns the symbol corresponding to the string otherwise" do intern("abc-123").should == :"abc-123" end end end
Version data entries
13 entries across 13 versions & 1 rubygems