Skip to content

Commit

Permalink
[ruby/bigdecimal] Fix the style in test/bigdecimal/test_bigdecimal.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkn committed Dec 23, 2021
1 parent ec478d9 commit 247d8d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/bigdecimal/test_bigdecimal.rb
Expand Up @@ -2089,14 +2089,14 @@ def test_initialize_copy_dup_clone_frozen_error
assert_raise(err) { bd.send(:initialize_dup, bd2) }
end

def test_llong_min
def test_llong_min_gh_200
# https://github.com/ruby/bigdecimal/issues/199
# Between LLONG_MIN and -ULLONG_MAX
llong_min = -(2 ** 63 + 1)
assert_equal BigDecimal(llong_min.to_s), BigDecimal(llong_min)
assert_equal(BigDecimal(llong_min.to_s), BigDecimal(llong_min), "[GH-200]")

minus_ullong_max = -(2 ** 64 - 1)
assert_equal BigDecimal(minus_ullong_max.to_s), BigDecimal(minus_ullong_max)
assert_equal(BigDecimal(minus_ullong_max.to_s), BigDecimal(minus_ullong_max), "[GH-200]")
end

def assert_no_memory_leak(code, *rest, **opt)
Expand Down

0 comments on commit 247d8d2

Please sign in to comment.