summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <[email protected]>2024-11-08 20:53:21 +0900
committerYusuke Endoh <[email protected]>2024-11-08 20:53:21 +0900
commitfde6d189b23a5d471d212509ab1a6609718c74fe (patch)
treeb1ba2bf2f18fb9e794fb47609caf8fb7a45a6636
parentc348a4fd7ae7b50cc8839693aab87457a0aba6f7 (diff)
Avoid calculating large powers
... for slow CI machines like macOS.
-rw-r--r--test/ruby/test_integer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_integer.rb b/test/ruby/test_integer.rb
index 7819e03e28..1dbb3fbb45 100644
--- a/test/ruby/test_integer.rb
+++ b/test/ruby/test_integer.rb
@@ -62,14 +62,14 @@ class TestInteger < Test::Unit::TestCase
<<~EXPRS.each_line.with_index(__LINE__+1) do |expr, line|
crash01: 111r+11**-11111161111111
crash02: 1118111111111**-1111111111111111**1+1==11111
- crash03: -1111111**-1111*11 - -11** -11111111
+ crash03: -1111111**-1111*11 - -11** -1111111
crash04: 1118111111111** -1111111111111111**1+11111111111**1 ===111
crash05: 11** -111155555555555555 -55 !=5-555
crash07: 1 + 111111111**-1111811111
crash08: 18111111111**-1111111111111111**1 + 1111111111**-1111**1
crash10: -7 - -1111111** -1111**11
crash12: 1118111111111** -1111111111111111**1 + 1111 - -1111111** -1111*111111111119
- crash13: 1.0i - -11** -11111111
+ crash13: 1.0i - -11** -1111111
crash14: 11111**111111111**111111 * -11111111111111111111**-111111111111
crash15: ~1**1111 + -~1**~1**111
crash17: 11** -1111111**1111 /11i