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/syntax.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/syntax.rb')
| -rw-r--r-- | test/t/syntax.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/t/syntax.rb b/test/t/syntax.rb index b975d0103..c87a81e06 100644 --- a/test/t/syntax.rb +++ b/test/t/syntax.rb @@ -22,7 +22,7 @@ assert('super', '11.3.4') do bar = SuperBar.new assert_true bar.foo - assert_equal bar.bar(1,2,3), [1,2,3] + assert_equal [1,2,3], bar.bar(1,2,3) end assert('yield', '11.3.5') do @@ -37,9 +37,9 @@ assert('Abbreviated variable assignment', '11.4.2.3.2') do c = 1 c += 2 - assert_equal a, 1 + assert_equal 1, a assert_nil b - assert_equal c, 3 + assert_equal 3, c end assert('Nested const reference') do @@ -51,8 +51,8 @@ assert('Nested const reference') do end end end - assert_equal Syntax4Const::CONST1, "hello world" - assert_equal Syntax4Const::Const2.new.const1, "hello world" + assert_equal "hello world", Syntax4Const::CONST1 + assert_equal "hello world", Syntax4Const::Const2.new.const1 end assert('Abbreviated variable assignment as returns') do @@ -63,7 +63,7 @@ assert('Abbreviated variable assignment as returns') do end end end - assert_equal Syntax4AbbrVarAsgnAsReturns::A.new.b, 1 + assert_equal 1, Syntax4AbbrVarAsgnAsReturns::A.new.b end assert('Splat and mass assignment') do |
