diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-08-02 20:41:55 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-08-02 20:41:55 -0700 |
| commit | f2b31afb39da09e9a722b86c4cecab57716db71b (patch) | |
| tree | 0cd2a94c9b6fd17ecb80e80559ee114e3b8fb838 /test/t/proc.rb | |
| parent | b4858c82f8ffd8d47626a754a78f7dae68bc7ea9 (diff) | |
| parent | ba9fe99e7499176614a4149f0de49d6598126755 (diff) | |
| download | mruby-f2b31afb39da09e9a722b86c4cecab57716db71b.tar.gz mruby-f2b31afb39da09e9a722b86c4cecab57716db71b.zip | |
Merge pull request #1429 from suzukaze/fix-order-of-expected-and-actual
I fix order of expected and actual from basicobject.rb to true.rb in folder '/test/t'.
Diffstat (limited to 'test/t/proc.rb')
| -rw-r--r-- | test/t/proc.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/t/proc.rb b/test/t/proc.rb index 56bab8c64..4227772dd 100644 --- a/test/t/proc.rb +++ b/test/t/proc.rb @@ -2,11 +2,11 @@ # Proc ISO Test assert('Proc', '15.2.17') do - assert_equal Proc.class, Class + assert_equal Class, Proc.class end assert('Proc superclass', '15.2.17.2') do - assert_equal Proc.superclass, Object + assert_equal Object, Proc.superclass end assert('Proc.new', '15.2.17.3.1') do @@ -36,10 +36,10 @@ assert('Proc#arity', '15.2.17.4.2') do c = Proc.new {|x=0, y|}.arity d = Proc.new {|(x, y), z=0|}.arity - assert_equal a, 2 - assert_equal b, -3 - assert_equal c, 1 - assert_equal d, 1 + assert_equal 2, a + assert_equal(-3, b) + assert_equal 1, c + assert_equal 1, d end assert('Proc#call', '15.2.17.4.3') do @@ -51,6 +51,6 @@ assert('Proc#call', '15.2.17.4.3') do b2 = Proc.new { |i| a2 += i } b2.call(5) - assert_equal a, 1 - assert_equal a2, 5 + assert_equal 1, a + assert_equal 5, a2 end |
