Skip to content

Commit b8dc929

Browse files
committed
SQ
1 parent 2534460 commit b8dc929

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/rdiscount_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ def test_that_discount_does_not_blow_up_with_weird_formatting_case
2424
def test_that_oversized_input_raises_argument_error
2525
# mkd_string() takes an int length, so inputs > INT_MAX (2 147 483 647 bytes)
2626
# must be rejected before reaching C to avoid integer truncation / overflow.
27-
INT_MAX = 2_147_483_647
27+
int_max = 2_147_483_647 # INT_MAX in C
2828
begin
29-
oversized_text = 'a' * (INT_MAX + 1)
29+
oversized_text = 'a' * (int_max + 1)
3030
rescue NoMemoryError
3131
skip "Insufficient memory to create oversized input for this test"
3232
end

0 commit comments

Comments
 (0)