Sha256: faf241241ce8820d010fd2b82fdff7440f21963cc006079826d98090ec14d6b2
Contents?: true
Size: 307 Bytes
Versions: 2
Compression:
Stored size: 307 Bytes
Contents
class MainMethodTest < Test::Unit::TestCase def test_main_generation_for_file_with_class_of_same_name code = <<-EOC class WithMain end puts 'bar' EOC main_class, = compile code, :name => 'with_main' assert_output "bar\n" do main_class.main(nil) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mirah-0.1.4-java | test/jvm/main_method_test.rb |
mirah-0.1.3-java | test/jvm/main_method_test.rb |