Added symbol & string identity tests.

This commit is contained in:
Jim Weirich
2010-09-27 11:36:38 -04:00
parent fe2ee86172
commit ece35b2539
4 changed files with 20 additions and 4 deletions

View File

@@ -19,8 +19,8 @@ class AboutSymbols < EdgeCase::Koan
symbol1 = :a_symbol
symbol2 = :a_symbol
assert symbol1.equal?(__(symbol2))
assert_equal __(symbol1.object_id), symbol2.object_id
assert_equal __(true), symbol1 == symbol2
assert_equal __(true), symbol1.object_id == symbol2.object_id
end
def test_method_names_become_symbols