summaryrefslogtreecommitdiff
path: root/test/-ext-/integer/test_integer.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-08 19:07:16 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-09 22:38:06 +0900
commit590dc06e3840cc7b00d80ccaac9fbf42573428f8 (patch)
treee5f6aa316246401b8d89e7419ddf0976238c04b5 /test/-ext-/integer/test_integer.rb
parent161a20df28dd09ff35a32a7e2b7ce6cab7079707 (diff)
Get rid of defining methods for tests in core classes
Not to interfere in other tests.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4043
Diffstat (limited to 'test/-ext-/integer/test_integer.rb')
-rw-r--r--test/-ext-/integer/test_integer.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/-ext-/integer/test_integer.rb b/test/-ext-/integer/test_integer.rb
index 8d7785047b..26263211e6 100644
--- a/test/-ext-/integer/test_integer.rb
+++ b/test/-ext-/integer/test_integer.rb
@@ -16,11 +16,11 @@ class Test_Integer < Test::Unit::TestCase
def test_positive_pow
assert_separately(%w[-r-test-/integer], "#{<<~"begin;"}\n#{<<~'end;'}", timeout: 3)
begin;
- assert_equal(1, 1.positive_pow(1))
- assert_equal(0, 0.positive_pow(1))
- assert_equal(3, 3.positive_pow(1))
- assert_equal(-3, -3.positive_pow(1))
- assert_equal(9, -3.positive_pow(2))
+ assert_equal(1, Bug::Integer.positive_pow(1, 1))
+ assert_equal(0, Bug::Integer.positive_pow(0, 1))
+ assert_equal(3, Bug::Integer.positive_pow(3, 1))
+ assert_equal(-3, Bug::Integer.positive_pow(-3, 1))
+ assert_equal(9, Bug::Integer.positive_pow(-3, 2))
end;
end
end