Sha256: dbdda9ca02d6a6860f0e16db10c9d902f01cfb925cf702c6fb1200eea66ef064
Contents?: true
Size: 448 Bytes
Versions: 4
Compression:
Stored size: 448 Bytes
Contents
class ListExtensionsTest < Test::Unit::TestCase def test_bracket_getter cls, = compile(<<-EOF) x = [1,2] puts x[0] EOF assert_output("1\n") do cls.main(nil) end end def test_bracket_assignment cls, = compile(<<-EOF) import java.util.ArrayList # literals are immutable x = ArrayList.new x[0]= "2" puts x EOF assert_output("[2]\n") do cls.main(nil) end end end
Version data entries
4 entries across 4 versions & 1 rubygems