From bdef4cf4c73b28b57340950b528635cbd2887c54 Mon Sep 17 00:00:00 2001 From: Andrew Konchin Date: Wed, 31 Jan 2024 16:59:57 +0200 Subject: [PATCH] Untag passing specs in ruby/language --- spec/tags/language/END_tags.txt | 1 - spec/tags/language/assignments_tags.txt | 3 --- spec/tags/language/block_tags.txt | 2 -- spec/tags/language/def_tags.txt | 2 -- spec/tags/language/defined_tags.txt | 10 ---------- spec/tags/language/lambda_tags.txt | 4 ---- spec/tags/language/magic_comment_tags.txt | 7 +------ spec/tags/language/method_tags.txt | 8 -------- spec/tags/language/numbers_tags.txt | 1 - spec/tags/language/optional_assignments_tags.txt | 3 --- spec/tags/language/regexp/character_classes_tags.txt | 1 - spec/tags/language/regexp/grouping_tags.txt | 1 - spec/tags/language/regexp/modifiers_tags.txt | 2 -- spec/tags/language/regexp_tags.txt | 1 - spec/tags/language/super_tags.txt | 1 - spec/tags/language/symbol_tags.txt | 1 - 16 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 spec/tags/language/block_tags.txt delete mode 100644 spec/tags/language/lambda_tags.txt delete mode 100644 spec/tags/language/numbers_tags.txt delete mode 100644 spec/tags/language/regexp/character_classes_tags.txt delete mode 100644 spec/tags/language/regexp/grouping_tags.txt delete mode 100644 spec/tags/language/regexp/modifiers_tags.txt delete mode 100644 spec/tags/language/super_tags.txt diff --git a/spec/tags/language/END_tags.txt b/spec/tags/language/END_tags.txt index 5e5a27cc7080..0cec2bc81b77 100644 --- a/spec/tags/language/END_tags.txt +++ b/spec/tags/language/END_tags.txt @@ -11,4 +11,3 @@ slow:The END keyword runs only once for multiple calls slow:The END keyword warns when END is used in a method slow:The END keyword END blocks and at_exit callbacks are mixed runs them all in reverse order of registration slow:The END keyword is affected by the toplevel assignment -fails(prism, https://github.com/ruby/prism/issues/2082):The END keyword warns when END is used in a method diff --git a/spec/tags/language/assignments_tags.txt b/spec/tags/language/assignments_tags.txt index 482d29b2f94b..d0c793ea5ecd 100644 --- a/spec/tags/language/assignments_tags.txt +++ b/spec/tags/language/assignments_tags.txt @@ -1,4 +1 @@ -fails:Assignments using += using compounded constants causes side-effects of the module part to be applied only once (when assigns) -fails:Assignments using += using an accessor ignores method visibility when receiver is self -fails:Assignments using += using a #[] ignores method visibility when receiver is self fails:Assignments using += using a #[] splatted argument calls #to_a only once diff --git a/spec/tags/language/block_tags.txt b/spec/tags/language/block_tags.txt deleted file mode 100644 index d09ded2bb3ab..000000000000 --- a/spec/tags/language/block_tags.txt +++ /dev/null @@ -1,2 +0,0 @@ -fails:Post-args with optional args with a circular argument reference raises a SyntaxError if using an existing local with the same name as the argument -fails:Post-args with optional args with a circular argument reference raises a SyntaxError if there is an existing method with the same name as the argument diff --git a/spec/tags/language/def_tags.txt b/spec/tags/language/def_tags.txt index db5330caf277..7461260ad73a 100644 --- a/spec/tags/language/def_tags.txt +++ b/spec/tags/language/def_tags.txt @@ -1,3 +1 @@ -fails:An instance method raises FrozenError with the correct class name fails:A singleton method definition raises FrozenError with the correct class name -fails:An instance method with a default argument raises a SyntaxError when there is an existing method with the same name as the local variable diff --git a/spec/tags/language/defined_tags.txt b/spec/tags/language/defined_tags.txt index af98c0bf9e22..c7de00b3f6a7 100644 --- a/spec/tags/language/defined_tags.txt +++ b/spec/tags/language/defined_tags.txt @@ -1,14 +1,4 @@ fails:The defined? keyword for a scoped constant returns nil when a constant is defined on top-level but not on the class -fails:The defined? keyword for a scoped constant returns nil when an undefined constant is scoped to a defined constant -fails:The defined? keyword for a top-level scoped constant returns nil when an undefined constant is scoped to a defined constant -fails:The defined? keyword for a self-send method call scoped constant returns nil if the last constant is not defined in the scope chain -fails:The defined? keyword for a receiver method call scoped constant returns nil if the last constant is not defined in the scope chain -fails:The defined? keyword for a module method call scoped constant returns nil if the last constant in the scope chain is not defined -fails:The defined? keyword for a variable scoped constant returns nil if the instance scoped constant is not defined -fails:The defined? keyword for a variable scoped constant returns nil if the global scoped constant is not defined -fails:The defined? keyword for a variable scoped constant returns nil if the class scoped constant is not defined -fails:The defined? keyword for a variable scoped constant returns nil if the local scoped constant is not defined fails:The defined? keyword when called with a method name in a void context warns about the void context when parsing it -fails:The defined? keyword for an expression returns 'expression' for an assigning a fully qualified constant with '+=' fails:The defined? keyword for an expression &&= returns 'expression' for assigning a fully qualified constant with '&&=' fails:The defined? keyword for an expression ||= returns 'expression' for assigning a fully qualified constant with '||=' diff --git a/spec/tags/language/lambda_tags.txt b/spec/tags/language/lambda_tags.txt deleted file mode 100644 index 7953e342863c..000000000000 --- a/spec/tags/language/lambda_tags.txt +++ /dev/null @@ -1,4 +0,0 @@ -fails:A lambda literal -> () { } assigns variables from parameters with circular optional argument reference raises a SyntaxError if using an existing local with the same name as the argument -fails:A lambda literal -> () { } assigns variables from parameters with circular optional argument reference raises a SyntaxError if there is an existing method with the same name as the argument -fails(https://github.com/ruby/prism/issues/2067):"A lambda literal -> () { } assigns variables from parameters for definition \n @a = -> (a: @a = -> (a: 1) { a }, b:) do\n [a, b]\n end" -fails(https://github.com/ruby/prism/issues/2067):"A lambda expression 'lambda { ... }' assigns variables from parameters for definition \n @a = lambda do |a: (@a = -> (a: 1) { a }), b:|\n [a, b]\n end" diff --git a/spec/tags/language/magic_comment_tags.txt b/spec/tags/language/magic_comment_tags.txt index 6cc22c3994f3..0afc765828ad 100644 --- a/spec/tags/language/magic_comment_tags.txt +++ b/spec/tags/language/magic_comment_tags.txt @@ -47,14 +47,9 @@ slow:Magic comments in an -e argument are optional slow:Magic comments in an -e argument are case-insensitive slow:Magic comments in an -e argument must be at the first line slow:Magic comments in an -e argument must be the first token of the line +fails:Magic comments in an -e argument do not cause bytes to be mangled by passing them through the wrong encoding slow:Magic comments in an -e argument can be after the shebang slow:Magic comments in an -e argument can take Emacs style slow:Magic comments in an -e argument can take vim style slow:Magic comments in an -e argument determine __ENCODING__ slow:Magic comments in an -e argument do not cause bytes to be mangled by passing them through the wrong encoding -fails:Magic comments in an -e argument are case-insensitive -fails:Magic comments in an -e argument can be after the shebang -fails:Magic comments in an -e argument can take Emacs style -fails:Magic comments in an -e argument can take vim style -fails:Magic comments in an -e argument determine __ENCODING__ -fails:Magic comments in an -e argument do not cause bytes to be mangled by passing them through the wrong encoding diff --git a/spec/tags/language/method_tags.txt b/spec/tags/language/method_tags.txt index d57f26e6a1f8..67c0e5148ad2 100644 --- a/spec/tags/language/method_tags.txt +++ b/spec/tags/language/method_tags.txt @@ -1,9 +1 @@ -fails:An endless method definition without arguments for definition 'def m() = 42' -fails:An endless method definition with arguments for definition 'def m(a, b) = a + b' -fails:"An endless method definition with multiline body for definition \n def m(n) =\n if n > 2\n m(n - 2) + m(n - 1)\n else\n 1\n end" -fails:"An endless method definition with args forwarding for definition \n def mm(word, num:)\n word * num\n end\n def m(...) = mm(...) + mm(...)" -fails:kwarg with omitted value in a method call accepts short notation 'kwarg' in method call for definition 'def call(*args, **kwargs) = [args, kwargs]' -fails:"kwarg with omitted value in a method call with methods and local variables for definition \n def call(*args, **kwargs) = [args, kwargs]\n def bar\n "baz"\n end\n def foo(val)\n call bar:, val:\n end" -fails:An endless method definition without arguments without parenthesis for definition 'def m = 42' -fails:Inside 'endless' method definitions allows method calls without parenthesis fails:A method assigns local variables from method parameters for definition 'def m(a, **nil); a end;' diff --git a/spec/tags/language/numbers_tags.txt b/spec/tags/language/numbers_tags.txt deleted file mode 100644 index 852a8c3c75d0..000000000000 --- a/spec/tags/language/numbers_tags.txt +++ /dev/null @@ -1 +0,0 @@ -fails:A number literal can be a float literal with trailing 'r' to represent a Rational diff --git a/spec/tags/language/optional_assignments_tags.txt b/spec/tags/language/optional_assignments_tags.txt index 69da4ff3d01e..fe99f0701f59 100644 --- a/spec/tags/language/optional_assignments_tags.txt +++ b/spec/tags/language/optional_assignments_tags.txt @@ -1,5 +1,2 @@ -fails:Optional constant assignment with &&= causes side-effects of the module part to be applied only once (when assigns) -fails:Optional variable assignments using ||= using a #[] ignores method visibility when receiver is self -fails:Optional variable assignments using &&= using a #[] ignores method visibility when receiver is self fails:Optional variable assignments using ||= using a #[] splatted argument calls #to_a only once fails:Optional variable assignments using &&= using a #[] splatted argument calls #to_a only once diff --git a/spec/tags/language/regexp/character_classes_tags.txt b/spec/tags/language/regexp/character_classes_tags.txt deleted file mode 100644 index db733dbbde36..000000000000 --- a/spec/tags/language/regexp/character_classes_tags.txt +++ /dev/null @@ -1 +0,0 @@ -fails(https://github.com/ruby/prism/issues/2116):Regexp with character classes supports [[:alpha:][:digit:][:etc:]] (predefined character classes) diff --git a/spec/tags/language/regexp/grouping_tags.txt b/spec/tags/language/regexp/grouping_tags.txt deleted file mode 100644 index 374ad19133fd..000000000000 --- a/spec/tags/language/regexp/grouping_tags.txt +++ /dev/null @@ -1 +0,0 @@ -fails(https://github.com/ruby/prism/issues/2116):Regexps with grouping raises a SyntaxError when parentheses aren't balanced diff --git a/spec/tags/language/regexp/modifiers_tags.txt b/spec/tags/language/regexp/modifiers_tags.txt deleted file mode 100644 index 6255d64c0102..000000000000 --- a/spec/tags/language/regexp/modifiers_tags.txt +++ /dev/null @@ -1,2 +0,0 @@ -fails(https://github.com/ruby/prism/issues/2116):Regexps with modifiers supports (?imx-imx) (inline modifiers) -fails(https://github.com/ruby/prism/issues/2116):Regexps with modifiers supports (?imx-imx:expr) (scoped inline modifiers) diff --git a/spec/tags/language/regexp_tags.txt b/spec/tags/language/regexp_tags.txt index 41abd442f49f..833c4a1fa031 100644 --- a/spec/tags/language/regexp_tags.txt +++ b/spec/tags/language/regexp_tags.txt @@ -1,2 +1 @@ fails(https://github.com/ruby/prism/issues/2115):Literal Regexps matches against $_ (last input) in a conditional if no explicit matchee provided -fails(https://github.com/ruby/prism/issues/2116):Literal Regexps throws SyntaxError for malformed literals diff --git a/spec/tags/language/super_tags.txt b/spec/tags/language/super_tags.txt deleted file mode 100644 index 89bd6320e8f2..000000000000 --- a/spec/tags/language/super_tags.txt +++ /dev/null @@ -1 +0,0 @@ -fails:The super keyword without explicit arguments that are '_' diff --git a/spec/tags/language/symbol_tags.txt b/spec/tags/language/symbol_tags.txt index 01f23ebbce69..6e8f8a6c4440 100644 --- a/spec/tags/language/symbol_tags.txt +++ b/spec/tags/language/symbol_tags.txt @@ -1,3 +1,2 @@ slow:A Symbol literal inherits the encoding of the magic comment and can have a binary encoding -fails(cannot parse a Symbol with binary encoding and non-ASCII characters):A Symbol literal inherits the encoding of the magic comment and can have a binary encoding fails(https://github.com/ruby/prism/issues/2129):A Symbol literal raises an EncodingError at parse time when Symbol with invalid bytes