diff options
| author | Yukihiro Matz Matsumoto <[email protected]> | 2013-02-25 12:27:27 +0900 |
|---|---|---|
| committer | Yukihiro Matz Matsumoto <[email protected]> | 2013-02-25 12:27:27 +0900 |
| commit | dbea1d2299c35a60c13369b950e1494a0c0d726d (patch) | |
| tree | 1c81cf0bb79834c61ba1c82610ed20a2e50eda7c /test | |
| parent | cf358aea9f553ab52417e808a70fd2374433fa82 (diff) | |
| download | mruby-dbea1d2299c35a60c13369b950e1494a0c0d726d.tar.gz mruby-dbea1d2299c35a60c13369b950e1494a0c0d726d.zip | |
remove assert_instance_of and assert_kind_of which might hinder duck typing
Diffstat (limited to 'test')
| -rw-r--r-- | test/assert.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/test/assert.rb b/test/assert.rb index 176405d19..0079287a0 100644 --- a/test/assert.rb +++ b/test/assert.rb @@ -86,16 +86,6 @@ def assert_include(collection, obj, msg = nil) assert_true(collection.include?(obj), msg, diff) end -def assert_instance_of(klass, obj, msg = nil) - msg = "Expected #{obj.inspect} to be an instance of #{klass}, not #{obj.class}" unless msg - assert_true(obj.instance_of?(klass), msg) -end - -def assert_kind_of(klass, obj, msg = nil) - msg = "Expected #{obj.inspect} to be an kind of #{klass}, not #{obj.class}" unless msg - assert_true(obj.kind_of?(klass), msg) -end - def assert_raises(*exp) if $mrbtest_assert $mrbtest_assert_idx += 1 |
