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 {
309309 // comparisons of dumped output in tests.
310310 // TODO: We should eventually have some way of filtering out trivia for
311311 // tests, so that it can appear in regular dumps.
312- return " customCharacterClass( \( strippingTriviaShallow. members) ) "
312+ return " customCharacterClass(inverted: \( isInverted ) , \( strippingTriviaShallow. members) ) "
313313 }
314314}
315315
Original file line number Diff line number Diff line change @@ -2210,6 +2210,8 @@ extension RegexTests {
22102210
22112211 parseNotEqualTest ( #"[abc]"# , #"[a b c]"# )
22122212
2213+ parseNotEqualTest ( " [abc] " , " [^abc] " )
2214+
22132215 parseNotEqualTest ( #"\1"# , #"\10"# )
22142216
22152217 parseNotEqualTest ( " (?^:) " , ( " (?-:) " ) )
You can’t perform that action at this time.
0 commit comments