-
-
Notifications
You must be signed in to change notification settings - Fork 924
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c38ac67
commit c3a3f56
Showing
8 changed files
with
61 additions
and
90 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,4 @@ | ||
fails:Method#arity returns n, where n is the number of required arguments, when there are zero or more required arguments only | ||
fails:Method#arity returns n, where n is the number of required arguments and method created via defined_method | ||
fails:Method#arity returns -(n+1), where n is the number of required arguments, when there is at least one optional argument | ||
fails:Method#arity returns -(n+1), where n is the number of required arguments, when there is a splat argument, regardless of optional arguments | ||
fails:Method#arity returns the same value regardless of the presence of a block | ||
fails:Method#arity for a Method generated by respond_to_missing? returns -1 | ||
fails:"Method#arity returns zero for method definition \n def m() end" | ||
fails:"Method#arity returns zero for method definition \n def n(&b) end" | ||
fails:"Method#arity returns positive values for method definition \n def m(a) end\n def n(a, b) end\n def o(a, b, c) end\n def p(a, b, c, d) end" | ||
fails:"Method#arity returns positive values for method definition \n def m(a:) end\n def n(a:, b:) end\n def o(a: 1, b:, c:, d: 2) end" | ||
fails:"Method#arity returns positive values for method definition \n def m(a, b:) end\n def n(a, b:, &l) end" | ||
fails:"Method#arity returns positive values for method definition \n def m(a, b, c:, d: 1) end\n def n(a, b, c:, d: 1, **k, &l) end" | ||
fails:"Method#arity returns negative values for method definition \n def m(a=1) end\n def n(a=1, b=2) end" | ||
fails:"Method#arity returns negative values for method definition \n def m(a, b=1) end\n def n(a, b, c=1, d=2) end" | ||
fails:"Method#arity returns negative values for method definition \n def m(a=1, *b) end\n def n(a=1, b=2, *c) end" | ||
fails:"Method#arity returns negative values for method definition \n def m(*) end\n def n(*a) end" | ||
fails:"Method#arity returns negative values for method definition \n def m(a, *) end\n def n(a, *b) end\n def o(a, b, *c) end\n def p(a, b, c, *d) end" | ||
fails:"Method#arity returns negative values for method definition \n def m(*a, b) end\n def n(*a, b, c) end\n def o(*a, b, c, d) end" | ||
fails:"Method#arity returns negative values for method definition \n def m(a, *b, c) end\n def n(a, b, *c, d, e) end" | ||
fails:"Method#arity returns negative values for method definition \n def m(a, b=1, c=2, *d, e, f) end\n def n(a, b, c=1, *d, e, f, g) end" | ||
fails:"Method#arity returns negative values for method definition \n def m(a: 1) end\n def n(a: 1, b: 2) end" | ||
fails:"Method#arity returns negative values for method definition \n def m(a=1, b: 2) end\n def n(*a, b: 1) end\n def o(a=1, b: 2) end\n def p(a=1, *b, c: 2, &l) end" | ||
fails:"Method#arity returns negative values for method definition \n def m(**k, &l) end\n def n(*a, **k) end\n def o(a: 1, b: 2, **k) end" | ||
fails:"Method#arity returns negative values for method definition \n def m(a=1, *b, c:, d: 2, **k, &l) end" | ||
fails:"Method#arity returns negative values for method definition \n def m(a, b=1, *c, d, e:, f: 2, **k, &l) end\n def n(a, b=1, *c, d:, e:, f: 2, **k, &l) end\n def o(a=0, b=1, *c, d, e:, f: 2, **k, &l) end\n def p(a=0, b=1, *c, d:, e:, f: 2, **k, &l) end" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters