Permalink
Browse files

[5462710] Fixed equality koan on symbols.

  • Loading branch information...
1 parent 325ad5b commit 204cd44ea98b6879c774a8a73be1ec1ba9fd14b5 @jimweirich jimweirich committed Dec 23, 2010
Showing with 4 additions and 4 deletions.
  1. +2 −2 koans/about_symbols.rb
  2. +2 −2 src/about_symbols.rb
View
@@ -11,8 +11,8 @@ def test_symbols_can_be_compared
symbol2 = :a_symbol
symbol3 = :something_else
- assert symbol1 == __
- assert symbol1 != __
+ assert_equal __, symbol1 == symbol2
+ assert_equal __, symbol1 == symbol3
end
def test_identical_symbols_are_a_single_internal_object
View
@@ -11,8 +11,8 @@ def test_symbols_can_be_compared
symbol2 = :a_symbol
symbol3 = :something_else
- assert symbol1 == __(symbol2)
- assert symbol1 != __(symbol3)
+ assert_equal __(true), symbol1 == symbol2
+ assert_equal __(false), symbol1 == symbol3
end
def test_identical_symbols_are_a_single_internal_object

0 comments on commit 204cd44

Please sign in to comment.