diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/assert.rb | 2 | ||||
| -rw-r--r-- | test/driver.c | 2 | ||||
| -rw-r--r-- | test/t/hash.rb | 2 | ||||
| -rw-r--r-- | test/t/methods.rb | 2 | ||||
| -rw-r--r-- | test/t/module.rb | 12 |
5 files changed, 10 insertions, 10 deletions
diff --git a/test/assert.rb b/test/assert.rb index 8fecc5b0a..a4ee00299 100644 --- a/test/assert.rb +++ b/test/assert.rb @@ -106,7 +106,7 @@ def assert_equal(arg1, arg2 = nil, arg3 = nil) else exp, act, msg = arg1, arg2, arg3 end - + msg = "Expected to be equal" unless msg diff = assertion_diff(exp, act) assert_true(exp == act, msg, diff) diff --git a/test/driver.c b/test/driver.c index bcac73d25..f7fb1b6df 100644 --- a/test/driver.c +++ b/test/driver.c @@ -63,7 +63,7 @@ t_printstr(mrb_state *mrb, mrb_value obj) { char *s; int len; - + if (mrb_string_p(obj)) { s = RSTRING_PTR(obj); len = RSTRING_LEN(obj); diff --git a/test/t/hash.rb b/test/t/hash.rb index 8a10f4026..2ddd33316 100644 --- a/test/t/hash.rb +++ b/test/t/hash.rb @@ -235,7 +235,7 @@ assert('Hash#replace', '15.2.13.4.23') do b = {} b.replace(a) assert_equal(42, b[1]) - + a = Hash.new{|h,x| x} b.replace(a) assert_equal(127, b[127]) diff --git a/test/t/methods.rb b/test/t/methods.rb index bbd8ee09d..f9c25dc33 100644 --- a/test/t/methods.rb +++ b/test/t/methods.rb @@ -65,7 +65,7 @@ assert('The undef statement', '13.3.7 a) 4)') do assert_true(existing_method_e, 'Method should be defined') assert_true(existing_method_f, 'Method should be defined') - # undefine in all possible ways and check that method + # undefine in all possible ways and check that method # is undefined undef existing_method_a diff --git a/test/t/module.rb b/test/t/module.rb index 48a09f720..585774a4b 100644 --- a/test/t/module.rb +++ b/test/t/module.rb @@ -485,19 +485,19 @@ end assert('Issue 1467') do module M1 def initialize() - super() + super() end end - class C1 - include M1 - def initialize() - super() + class C1 + include M1 + def initialize() + super() end end class C2 - include M1 + include M1 end C1.new |
