Commit 625988ee authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2249 from yui-knk/fix-iso

Add ISO No. to Integer#divmod  test.
parents e1b84143 b9e9ce92
...@@ -235,9 +235,7 @@ assert('Integer#upto', '15.2.8.3.27') do ...@@ -235,9 +235,7 @@ assert('Integer#upto', '15.2.8.3.27') do
assert_equal 6, a assert_equal 6, a
end end
# Not ISO specified assert('Integer#divmod', '15.2.8.3.30') do
assert('Integer#divmod') do
assert_equal [ 0, 0], 0.divmod(1) assert_equal [ 0, 0], 0.divmod(1)
assert_equal [ 0, 1], 1.divmod(3) assert_equal [ 0, 1], 1.divmod(3)
assert_equal [ 3, 0], 3.divmod(1) assert_equal [ 3, 0], 3.divmod(1)
...@@ -247,6 +245,8 @@ assert('Integer#divmod') do ...@@ -247,6 +245,8 @@ assert('Integer#divmod') do
assert_equal [ 1, -6], -13.divmod(-7) assert_equal [ 1, -6], -13.divmod(-7)
end end
# Not ISO specified
assert('Integer#step') do assert('Integer#step') do
a = [] a = []
b = [] b = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment