Sha256: edfa37f5d735f6e00a7e0e9dfeb9458c74436b50167d8a2e7197cc672f76b50f
Contents?: true
Size: 423 Bytes
Versions: 2
Compression:
Stored size: 423 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 x = ArrayList.new x[0]= "2" puts x EOF assert_output("[2]\n") do cls.main(nil) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mirah-0.1.4-java | test/jvm/list_extensions_test.rb |
mirah-0.1.3-java | test/jvm/list_extensions_test.rb |