Skip to content

Commit

Permalink
[5462710] Fixed equality koan on symbols.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimweirich committed Dec 23, 2010
1 parent 325ad5b commit 204cd44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions koans/about_symbols.rb
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/about_symbols.rb
Expand Up @@ -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
Expand Down

0 comments on commit 204cd44

Please sign in to comment.