mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-15 07:23:19 -04:00
Add preceding bang to make first test fail
Seems in-line with the other koans at this point to require the student remove the bang.
This commit is contained in:
@@ -2,7 +2,10 @@ require 'edgecase'
|
|||||||
|
|
||||||
class AboutNil < EdgeCase::Koan
|
class AboutNil < EdgeCase::Koan
|
||||||
def test_nil_is_an_object
|
def test_nil_is_an_object
|
||||||
assert nil.is_a?(Object), "Unlike NULL in other languages"
|
#
|
||||||
|
# Hint: '!'s negate the response from what follows.
|
||||||
|
#
|
||||||
|
assert !nil.is_a?(Object), "Unlike NULL in other languages"
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_you_dont_get_null_pointer_errors_when_calling_methods_on_nil
|
def test_you_dont_get_null_pointer_errors_when_calling_methods_on_nil
|
||||||
|
|||||||
Reference in New Issue
Block a user