diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-31 20:50:53 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-31 20:50:53 -0700 |
| commit | d16edc11ca9b4754a79f0fb4f481c3bd46077bac (patch) | |
| tree | b4511ea434c09b4d276d650bdf009848b2664284 /test | |
| parent | 7f282429b0a6d8033be44db012d75a571eab7273 (diff) | |
| parent | d5eab236e7ca92e361cc9bc13e4a72a2ea99a519 (diff) | |
| download | mruby-d16edc11ca9b4754a79f0fb4f481c3bd46077bac.tar.gz mruby-d16edc11ca9b4754a79f0fb4f481c3bd46077bac.zip | |
Merge pull request #1424 from Bovi-Li/test-assert
Fix assignment of block as actual value and not expected
Diffstat (limited to 'test')
| -rw-r--r-- | test/assert.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/assert.rb b/test/assert.rb index 98057331b..3d35fc267 100644 --- a/test/assert.rb +++ b/test/assert.rb @@ -101,7 +101,7 @@ end def assert_equal(arg1, arg2 = nil, arg3 = nil) if block_given? - exp, act, msg = yield, arg1, arg2 + exp, act, msg = arg1, yield, arg2 else exp, act, msg = arg1, arg2, arg3 end @@ -113,7 +113,7 @@ end def assert_not_equal(arg1, arg2 = nil, arg3 = nil) if block_given? - exp, act, msg = yield, arg1, arg2 + exp, act, msg = arg1, yield, arg2 else exp, act, msg = arg1, arg2, arg3 end |
