Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File: about_hashes.rb
- Line: 4
- def test_creating_hashes
- empty_hash = Hash.new
- assert_equal {}.class, empty_hash.class // here's the issue
- assert_equal({}, empty_hash)
- assert_equal 0, empty_hash.size
- end
- When run i get after the great ascii art:
- path_to_enlightenment.rb:10:in `require': ./about_hashes.rb:6: syntax error, unexpected '\n', expecting tCOLON2 or '[' or '.' (SyntaxError)
- from path_to_enlightenment.rb:10
- macmac:01.koans borjo$
- macmac:01.koans borjo$ ruby --version
- ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin10.0]
- macmac:01.koans borjo$
Add Comment
Please, Sign In to add comment