Files
RubyMotion/test/test/spec/hash_spec.rb
2012-09-22 21:52:50 +09:00

8 lines
140 B
Ruby

describe "Hash" do
it 'can be created using []' do
h = Hash[a: 'a', b: 'b']
h[:a].should == 'a'
h[:b].should == 'b'
end
end