summaryrefslogtreecommitdiff
path: root/test/ruby/test_integer.rb
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2022-12-21 15:48:00 +0000
committernagachika <nagachika@ruby-lang.org>2024-11-22 08:06:01 +0900
commited41225edd5e5488db13785aac7180e613c07915 (patch)
tree0ee27dc71a83950eb2d35c69cb2b5f61618abd00 /test/ruby/test_integer.rb
parent2861aa22d01a817d84842dec8cc7a57c01f96139 (diff)
Fix Error in GC Compaction specs
Previously if any of the tests that move objects between size pools failed to move anything, then the call to stats.dig would return `nil` which would then cause assert_operator to error. This should be a test Failure, rather than an Error so this commit uses a default value of 0 if stats.dig fails to find a key. Also refactor object movement tests to use stats.dig, rather than :[]
Diffstat (limited to 'test/ruby/test_integer.rb')
0 files changed, 0 insertions, 0 deletions