Merged src directory with existing koans.

This commit is contained in:
Jim Weirich
2009-12-21 16:17:32 -05:00
parent c651dd5eba
commit f05d9ee1ac
21 changed files with 82 additions and 69 deletions

View File

@@ -6,10 +6,10 @@ class AboutExceptions < EdgeCase::Koan
end
def test_exceptions_inherit_from_Exception
assert MySpecialError.ancestors.include?(RuntimeError)
assert MySpecialError.ancestors.include?(StandardError)
assert MySpecialError.ancestors.include?(Exception)
assert MySpecialError.ancestors.include?(Object)
assert_equal __, MySpecialError.ancestors[1]
assert_equal __, MySpecialError.ancestors[2]
assert_equal __, MySpecialError.ancestors[3]
assert_equal __, MySpecialError.ancestors[4]
end
def test_rescue_clause
@@ -40,7 +40,7 @@ class AboutExceptions < EdgeCase::Koan
result = :exception_handled
end
assert_equal __(:exception_handled), result
assert_equal __, result
assert_equal __, ex.message
end