summaryrefslogtreecommitdiffhomepage
path: root/test/t/syntax.rb
diff options
context:
space:
mode:
authorJun Hiroe <[email protected]>2013-08-02 23:15:04 +0900
committerJun Hiroe <[email protected]>2013-08-02 23:15:04 +0900
commitbd48b383dfcd067995a563c3e5779993df9e65dc (patch)
tree92bdd4e3ea1bff9f60c55465ac333b97cbdbedff /test/t/syntax.rb
parentb775a887de797d5b46626c79eb85e84a176d5b0c (diff)
downloadmruby-bd48b383dfcd067995a563c3e5779993df9e65dc.tar.gz
mruby-bd48b383dfcd067995a563c3e5779993df9e65dc.zip
I fix order of actual and expect test value in syntax.rb.
Diffstat (limited to 'test/t/syntax.rb')
-rw-r--r--test/t/syntax.rb12
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