Skip to content

Instantly share code, notes, and snippets.

@alexwelch
alexwelch / hashes.rb
Last active April 5, 2016 02:32 — forked from devoracer/hashes.rb
tests
require File.expand_path(File.dirname(__FILE__) + '/neo')
class AboutHashes < Neo::Koan
def test_creating_hashes
empty_hash = Hash.new
assert_equal Hash, empty_hash.class
assert_equal({}, empty_hash)
assert_equal 0, empty_hash.size
end