File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Sources/_RegexParser/Regex/Printing Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ extension AST.CustomCharacterClass: _ASTNode {
309
309
// comparisons of dumped output in tests.
310
310
// TODO: We should eventually have some way of filtering out trivia for
311
311
// tests, so that it can appear in regular dumps.
312
- return " customCharacterClass( \( strippingTriviaShallow. members) ) "
312
+ return " customCharacterClass(inverted: \( isInverted ) , \( strippingTriviaShallow. members) ) "
313
313
}
314
314
}
315
315
Original file line number Diff line number Diff line change @@ -2210,6 +2210,8 @@ extension RegexTests {
2210
2210
2211
2211
parseNotEqualTest ( #"[abc]"# , #"[a b c]"# )
2212
2212
2213
+ parseNotEqualTest ( " [abc] " , " [^abc] " )
2214
+
2213
2215
parseNotEqualTest ( #"\1"# , #"\10"# )
2214
2216
2215
2217
parseNotEqualTest ( " (?^:) " , ( " (?-:) " ) )
You can’t perform that action at this time.
0 commit comments