We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2534460 commit b8dc929Copy full SHA for b8dc929
1 file changed
test/rdiscount_test.rb
@@ -24,9 +24,9 @@ def test_that_discount_does_not_blow_up_with_weird_formatting_case
24
def test_that_oversized_input_raises_argument_error
25
# mkd_string() takes an int length, so inputs > INT_MAX (2 147 483 647 bytes)
26
# must be rejected before reaching C to avoid integer truncation / overflow.
27
- INT_MAX = 2_147_483_647
+ int_max = 2_147_483_647 # INT_MAX in C
28
begin
29
- oversized_text = 'a' * (INT_MAX + 1)
+ oversized_text = 'a' * (int_max + 1)
30
rescue NoMemoryError
31
skip "Insufficient memory to create oversized input for this test"
32
end
0 commit comments