This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |