require 'test/unit' class TestJuneCves < Test::Unit::TestCase def test_should_raise_index_error assert_raise ArgumentError do a = [] a[0x7fffffff] = "A" end end def test_should_allow_ginormous_strings string = "A" * (2**16); true size = 0 while 1 && size < 2097152 do string << string puts size = string.size end assert true end end