Skip to content

Instantly share code, notes, and snippets.

@ribrdb
Created September 12, 2013 01:21
Show Gist options
  • Select an option

  • Save ribrdb/6532095 to your computer and use it in GitHub Desktop.

Select an option

Save ribrdb/6532095 to your computer and use it in GitHub Desktop.
F
===============================================================================
Failure: <false> is not true.
test_interface_declaration(InterfaceTest)
/Users/ribrdb/Documents/git/mirah/test/jvm/interface_test.rb:31:in `test_interface_declaration'
28:
29: def test_interface_declaration
30: interface = compile('interface A; end').first
=> 31: assert(interface.java_class.interface?)
32: assert_equal('A', interface.java_class.name)
33:
34: a, b = compile('interface A; end; interface B < A; end')
===============================================================================
F
===============================================================================
Failure: <Mirah::MirahError> exception expected but none was thrown.
test_interface_implementation_with_array_params_requires_type_information(InterfaceTest)
/Users/ribrdb/Documents/git/mirah/test/jvm/interface_test.rb:99:in `test_interface_implementation_with_array_params_requires_type_information'
96: EOF
97:
98: # this is the current behavior. I think we should fix it. nh
=> 99: error = assert_raises Mirah::MirahError do
100: interface, a_impl = compile(<<-EOF)
101: interface InterfaceWithArrays
102: def arr(messages:String[]):int; end
===============================================================================
E
===============================================================================
Error: test_rescue_scope(JVMCompilerTest)
Mirah::MirahError: Can't find method java.io.Serializable.getMessage()
/Users/ribrdb/Documents/git/mirah/lib/mirah/generator.rb:80:in `infer_asts'
/Users/ribrdb/Documents/git/mirah/lib/mirah/util/process_errors.rb:88:in `process_inference_errors'
/Users/ribrdb/Documents/git/mirah/lib/mirah/generator.rb:83:in `infer_asts'
/Users/ribrdb/Documents/git/mirah/lib/mirah/generator.rb:75:in `infer_asts'
/Users/ribrdb/Documents/git/mirah/test/jvm/bytecode_test_helper.rb:109:in `compile'
/Users/ribrdb/Documents/git/mirah/test/jvm/jvm_compiler_test.rb:1548:in `test_rescue_scope'
1545: end
1546:
1547: def test_rescue_scope
=> 1548: cls, = compile(<<-EOF)
1549: def foo
1550: a = 1
1551: b = 2
===============================================================================
F
===============================================================================
Failure: <Mirah::MirahError> exception expected but none was thrown.
test_method_def_after_macro_def_with_same_name_raises_error(MacrosTest)
/Users/ribrdb/Documents/git/mirah/test/jvm/macros_test.rb:298:in `test_method_def_after_macro_def_with_same_name_raises_error'
295: end
296:
297: def test_method_def_after_macro_def_with_same_name_raises_error
=> 298: assert_raises Mirah::MirahError do
299: compile(<<-EOF)
300: macro def self.foo
301: quote { System.out.println :z }
===============================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment