summaryrefslogtreecommitdiff
path: root/test/-ext-/integer/test_integer.rb
diff options
context:
space:
mode:
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 8d77850..2626321 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