diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2024-04-01 14:22:41 -0400 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2024-04-01 15:08:50 -0400 |
| commit | cc6668c65620a117b7af891beb1bee09d9f460fb (patch) | |
| tree | ddf5cbb54e21152f2b27f3dbcf0d968fca50e2ed | |
| parent | a9658b64094db1371550a5b8ca47308cdd60db78 (diff) | |
[PRISM] Enable passing pattern matching tests
| -rw-r--r-- | spec/prism.mspec | 2 | ||||
| -rw-r--r-- | test/.excludes-prism/TestPatternMatching.rb | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/spec/prism.mspec b/spec/prism.mspec index 1d4d6f3f21..9f5e2b2a5f 100644 --- a/spec/prism.mspec +++ b/spec/prism.mspec @@ -9,8 +9,6 @@ MSpec.register(:exclude, "Hash literal merges multiple nested '**obj' in Hash li MSpec.register(:exclude, "Hash literal raises a SyntaxError at parse time when Symbol key with invalid bytes") MSpec.register(:exclude, "Hash literal raises a SyntaxError at parse time when Symbol key with invalid bytes and 'key: value' syntax used") MSpec.register(:exclude, "The next statement in a method is invalid and raises a SyntaxError") -MSpec.register(:exclude, "Pattern matching variable pattern does not support using variable name (except _) several times") -MSpec.register(:exclude, "Pattern matching Hash pattern raise SyntaxError when keys duplicate in pattern") MSpec.register(:exclude, "Regexps with encoding modifiers supports /e (EUC encoding) with interpolation") MSpec.register(:exclude, "Regexps with encoding modifiers supports /e (EUC encoding) with interpolation /o") MSpec.register(:exclude, "Regexps with encoding modifiers preserves EUC-JP as /e encoding through interpolation") diff --git a/test/.excludes-prism/TestPatternMatching.rb b/test/.excludes-prism/TestPatternMatching.rb index 40d9d6d99c..cfd0c6bed9 100644 --- a/test/.excludes-prism/TestPatternMatching.rb +++ b/test/.excludes-prism/TestPatternMatching.rb @@ -1,5 +1,2 @@ -exclude(:test_array_pattern, "duplicated variable error missing") -exclude(:test_find_pattern, "duplicated variable error missing") exclude(:test_hash_pattern, "useless literal warning missing") -exclude(:test_invalid_syntax, "duplicated variable error missing") -exclude(:test_var_pattern, "duplicated variable error missing") +exclude(:test_invalid_syntax, "[a:] is disallowed") |
