Skip to content

Commit

Permalink
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions core/src/main/java/org/jruby/runtime/Signature.java
Original file line number Diff line number Diff line change
@@ -107,11 +107,11 @@ public static Signature from(Arity arity) {
case 0:
return arity.isFixed() ? Signature.NO_ARGUMENTS : Signature.OPTIONAL;
case 1:
return arity.isFixed() ? Signature.ONE_REQUIRED : Signature.ONE_ARGUMENT;
return arity.isFixed() ? Signature.ONE_ARGUMENT : Signature.ONE_REQUIRED;
case 2:
return arity.isFixed() ? Signature.TWO_REQUIRED : Signature.TWO_ARGUMENTS;
return arity.isFixed() ? Signature.TWO_ARGUMENTS : Signature.TWO_REQUIRED;
case 3:
return arity.isFixed() ? Signature.THREE_REQUIRED : Signature.THREE_ARGUMENTS;
return arity.isFixed() ? Signature.THREE_ARGUMENTS : Signature.THREE_REQUIRED;
}

throw new UnsupportedOperationException("We do not know enough about the arity to convert it to a signature");
2 changes: 0 additions & 2 deletions test/mri/excludes/TestProc.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
exclude :test_arity2, "needs investigation"
exclude :test_attr_source_location, "needs investigation"
exclude :test_bound_parameters, "needs investigation"
exclude :test_curry, "needs investigation"
@@ -15,4 +14,3 @@
exclude :test_proc_args_pos_opt_post_block, "needs investigation"
exclude :test_proc_lambda, "needs investigation"
exclude :test_safe, "needs investigation"

0 comments on commit d0132ad

Please sign in to comment.