summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJun Hiroe <[email protected]>2013-08-02 22:18:25 +0900
committerJun Hiroe <[email protected]>2013-08-02 22:36:38 +0900
commit20c6810ec71e3c55859b48f7f82ebb4404760957 (patch)
tree5080d11834afc41f285390d812edce4d5cc7a991
parent6583f340abf96a72dd7132274ccd280db2ffedd4 (diff)
downloadmruby-20c6810ec71e3c55859b48f7f82ebb4404760957.tar.gz
mruby-20c6810ec71e3c55859b48f7f82ebb4404760957.zip
I fix order of actual and expect test value in proc.rb.
-rw-r--r--test/t/proc.rb16
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