aboutsummaryrefslogtreecommitdiffstats
path: root/test/bigdecimal
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-07-13 12:51:35 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-07-13 14:01:28 +0900
commit3ef6364a988ab24ca7fdbb7d1b6840b2a40f1466 (patch)
tree13e8f2903bc85a9d7f2bb67fe45e3455e61ff53f /test/bigdecimal
parent5dd969892f16fa4683edd9734564154411e3fdbc (diff)
downloadruby-3ef6364a988ab24ca7fdbb7d1b6840b2a40f1466.tar.gz
Move bsearch test with Bigdecimal under the test_bigdecimal.rb
When we extract bigdecimal as bundled gems, this test will be failed with `make test-all`.
Diffstat (limited to 'test/bigdecimal')
-rw-r--r--test/bigdecimal/test_bigdecimal.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb
index b1557619a8..b28242b747 100644
--- a/test/bigdecimal/test_bigdecimal.rb
+++ b/test/bigdecimal/test_bigdecimal.rb
@@ -2275,6 +2275,12 @@ class TestBigDecimal < Test::Unit::TestCase
end
end
+ def test_bsearch_for_bigdecimal
+ assert_raise(TypeError) {
+ (BigDecimal('0.5')..BigDecimal('2.25')).bsearch
+ }
+ end
+
def assert_no_memory_leak(code, *rest, **opt)
code = "8.times {20_000.times {begin #{code}; rescue NoMemoryError; end}; GC.start}"
super(["-rbigdecimal"],