Skip to content

Instantly share code, notes, and snippets.

@baroquebobcat
Created July 29, 2012 21:37
Show Gist options
  • Select an option

  • Save baroquebobcat/3201976 to your computer and use it in GitHub Desktop.

Select an option

Save baroquebobcat/3201976 to your computer and use it in GitHub Desktop.
Mirah master: Outstanding test failures
Core Tests
========================
37 tests, 89 assertions, 1 failures, 0 errors
1) Failure:
test_rescue_w_different_type_raises_inference_error_when_expression(TyperTest)
[/<...>/mirah/test/core/typer_test.rb:253:in `test_rescue_w_different_type_raises_inference_error_when_expression'
org/jruby/RubyKernel.java:2076:in `send'
> maybe in `src/org/mirah/typer/typer.mirah.
JVM Tests
=======================
171 tests, 507 assertions, 4 failures, 17 errors
1) Error:
test_block_with_method_def(BlocksTest):
NoMethodError: undefined method `type_parameter_map' for #<MetaType java.util.ArrayList>
/<...>/mirah/lib/mirah/jvm/types/factory.rb:257:in `_find_method_type'
```
./lib/mirah/jvm/types/generic_type.rb: def type_parameter_map
./src/org/mirah/typer/futures.mirah: def type_parameter_map:HashMap; end
./lib/mirah/jvm/types/array_type.rb: class ArrayMetaType < MetaType; end
./lib/mirah/jvm/types/intrinsics.rb: class MetaType
./lib/mirah/jvm/types/meta_type.rb: class MetaType < Type
```
2) Failure:
test_block_with_no_params_on_interface_with(BlocksTest)
[/<...>/mirah/test/jvm/blocks_test.rb:265:in `test_block_with_no_params_on_interface_with'
org/jruby/RubyKernel.java:2076:in `send'
<Mirah::MirahError> exception expected but none was thrown. A block passed to a method taking an interface should throw an error if its args don't match.
3) Error:
test_closure(BlocksTest):
Mirah::MirahError: Unable to find local or method 'a'
/<...>/mirah/lib/mirah/generator.rb:68:in `infer_asts'
newast doesn't have closure support yet.
4) Error:
test_int_closure(BlocksTest):
Mirah::MirahError: Undefined variable a
/<...>/mirah/lib/mirah/generator.rb:68:in `infer_asts'
closure support
5) Error:
test_parameter_used_in_block(BlocksTest):
Mirah::MirahError: Unable to find local or method 'x'
/<...>/mirah/lib/mirah/generator.rb:68:in `infer_asts'
closure support
6) Error:
test_constructor_chaining(ConstructorsTest):
Mirah::MirahError: Cannot find instance method initialize(java.lang.String, java.lang.String) on Foo5
/<...>/mirah/lib/mirah/generator.rb:68:in `infer_asts'
7) Error:
test_super_constructor(ConstructorsTest):
Mirah::MirahError: Cannot find instance method initialize(int) on SC_A
/<...>/mirah/lib/mirah/generator.rb:68:in `infer_asts'
--
8) Error:
test_all_int_array(EnumerableTest):
Mirah::MirahError: Undefined variable x
/<...>/mirah/lib/mirah/generator.rb:68:in `infer_asts'
--
9) Error:
test_all_string_array(EnumerableTest):
Mirah::MirahError: Cannot find instance method all?() on java.lang.String[]
/<...>/mirah/lib/mirah/generator.rb:68:in `infer_asts'
--
10) Error:
test_each_int_arry(EnumerableTest):
Mirah::MirahError: Undefined variable x
/<...>/mirah/lib/mirah/generator.rb:68:in `infer_asts'
--
11) Error:
test_for_in_int_array(EnumerableTest):
Mirah::MirahError: Undefined variable x
/<...>/mirah/lib/mirah/generator.rb:68:in `infer_asts'
--
12) Error:
test_abstract(JVMCompilerTest):
Mirah::MirahError: InferenceError
/<...>/mirah/lib/mirah/generator.rb:68:in `infer_asts'
--
13) Error:
test_array_cast(JVMCompilerTest):
Mirah::MirahError: Cannot find static method []() on java.lang.String
/<...>/mirah/lib/mirah/generator.rb:68:in `infer_asts'
--
14) Failure:
test_interface_override_return_type(JVMCompilerTest)
[/<...>/mirah/test/jvm/jvm_compiler_test.rb:837:in `test_interface_override_return_type'
org/jruby/RubyKernel.java:2076:in `send'
--
15) Error:
test_optional_args(JVMCompilerTest):
NoMethodError: undefined method `hasDeclaration' for #<Java::OrgMirahTyper::BaseTypeFuture:0x66dff58b>
/<...>/mirah/lib/mirah/jvm/types/factory.rb:363:in `getMethodDefType'
--
16) Error:
test_static_import(JVMCompilerTest):
Mirah::MirahError: InferenceError
/<...>/mirah/lib/mirah/generator.rb:68:in `infer_asts'
--
17) Error:
test_void_chain(JVMCompilerTest):
Mirah::MirahError: Cannot find instance method write(java.lang.String) on void
/<...>/mirah/lib/mirah/generator.rb:68:in `infer_asts'
--
18) Failure:
test_dynamic_assignability(JavaTyperTest)
[/<...>/mirah/test/jvm/java_typer_test.rb:230:in `test_dynamic_assignability'
org/jruby/RubyKernel.java:2076:in `send'
--
19) Error:
test_macro_def_unquote_named_method_without_main(MacrosTest):
NameError: uncaught throw `exit'
org/jruby/RubyKernel.java:1217:in `throw'
--
20) Failure:
test_method_def_after_macro_def_with_same_name_raises_error(MacrosTest)
[/<...>/mirah/test/jvm/macros_test.rb:237:in `test_method_def_after_macro_def_with_same_name_raises_error'
org/jruby/RubyKernel.java:2076:in `send'
--
21) Error:
test_unquote_method_definitions_with_main(MacrosTest):
Mirah::MirahError: Cannot find instance method foo_set(int) on UnquoteMacros
/<...>/mirah/lib/mirah/generator.rb:68:in `infer_asts'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment