Permalink
Browse files

working away

  • Loading branch information...
1 parent daea57a commit ab74af590447ce9badd90d53c3134f3fb7c051b4 Danish Khan committed Mar 1, 2011
Showing with 7 additions and 7 deletions.
  1. +7 −7 koans/about_hashes.rb
View
@@ -24,8 +24,8 @@ def test_changing_hashes
hash = { :one => "uno", :two => "dos" }
hash[:one] = "eins"
- expected = { :one => __, :two => "dos" }
- assert_equal __, expected == hash
+ expected = { :one => "eins", :two => "dos" }
+ assert_equal true, expected == hash
# Bonus Question: Why was "expected" broken out into a variable
# rather than used as a literal?
@@ -35,15 +35,15 @@ def test_hash_is_unordered
hash1 = { :one => "uno", :two => "dos" }
hash2 = { :two => "dos", :one => "uno" }
- assert_equal __, hash1 == hash2
+ assert_equal true, hash1 == hash2
end
def test_hash_keys
hash = { :one => "uno", :two => "dos" }
- assert_equal __, hash.keys.size
- assert_equal __, hash.keys.include?(:one)
- assert_equal __, hash.keys.include?(:two)
- assert_equal __, hash.keys.class
+ assert_equal 2, hash.keys.size
+ assert_equal true, hash.keys.include?(:one)
+ assert_equal true, hash.keys.include?(:two)
+ assert_equal Array, hash.keys.class
end
def test_hash_values

0 comments on commit ab74af5

Please sign in to comment.