Updated koans from src.

This commit is contained in:
Jim Weirich
2010-09-28 14:17:46 -04:00
parent c0bbe773d9
commit b41d6167b4
11 changed files with 174 additions and 28 deletions

View File

@@ -130,7 +130,7 @@ class AboutClasses < EdgeCase::Koan
fido = Dog6.new("Fido")
rover = Dog6.new("Rover")
assert_not_equal rover.name, fido.name
assert_equal __, rover.name != fido.name
end
# ------------------------------------------------------------------
@@ -164,12 +164,12 @@ class AboutClasses < EdgeCase::Koan
def test_to_s_provides_a_string_version_of_the_object
fido = Dog7.new("Fido")
assert_equal "Fido", fido.to_s
assert_equal __, fido.to_s
end
def test_to_s_is_used_in_string_interpolation
fido = Dog7.new("Fido")
assert_equal "My dog is Fido", "My dog is #{fido}"
assert_equal __, "My dog is #{fido}"
end
def test_inspect_provides_a_more_complete_string_version