Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

working

  • Loading branch information...
commit 099c978f7b047b83785873beabb2f792ea4a020a 1 parent ab74af5
Danish Khan authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 koans/about_hashes.rb
View
14 koans/about_hashes.rb
@@ -48,19 +48,19 @@ def test_hash_keys
def test_hash_values
hash = { :one => "uno", :two => "dos" }
- assert_equal __, hash.values.size
- assert_equal __, hash.values.include?("uno")
- assert_equal __, hash.values.include?("dos")
- assert_equal __, hash.values.class
+ assert_equal 2, hash.values.size
+ assert_equal true, hash.values.include?("uno")
+ assert_equal true, hash.values.include?("dos")
+ assert_equal Array, hash.values.class
end
def test_combining_hashes
hash = { "jim" => 53, "amy" => 20, "dan" => 23 }
new_hash = hash.merge({ "jim" => 54, "jenny" => 26 })
- assert_equal __, hash != new_hash
+ assert_equal true, hash != new_hash
- expected = { "jim" => __, "amy" => 20, "dan" => 23, "jenny" => __ }
- assert_equal __, expected == new_hash
+ expected = { "jim" => 54, "amy" => 20, "dan" => 23, "jenny" => 26 }
+ assert_equal true, expected == new_hash
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.