| @@ -129,18 +129,18 @@ test "fuzz: malformed patterns should return errors" { formatting only |
| 129 | 129 | const allocator = std.testing.allocator; |
| 130 | 130 | |
| 131 | 131 | const bad_patterns = [_][]const u8{ |
| 132 | | - "(abc", // Unmatched paren |
| 133 | | - "abc)", // Unmatched paren |
| 134 | | - "[abc", // Unmatched bracket |
| 135 | | - "abc]", // Unmatched bracket |
| 136 | | - "*", // Quantifier without target |
| 137 | | - "+abc", // Quantifier without target |
| 138 | | - "?abc", // Quantifier without target |
| 139 | | - "{2,3}", // Quantifier without target |
| 140 | | - "\\", // Incomplete escape |
| 141 | | - "[z-a]", // Invalid range |
| 142 | | - "{-1,5}", // Invalid repetition |
| 143 | | - "{5,2}", // Invalid repetition (min > max) |
| 132 | + "(abc", // Unmatched paren |
| 133 | + "abc)", // Unmatched paren |
| 134 | + "[abc", // Unmatched bracket |
| 135 | + "abc]", // Unmatched bracket |
| 136 | + "*", // Quantifier without target |
| 137 | + "+abc", // Quantifier without target |
| 138 | + "?abc", // Quantifier without target |
| 139 | + "{2,3}", // Quantifier without target |
| 140 | + "\\", // Incomplete escape |
| 141 | + "[z-a]", // Invalid range |
| 142 | + "{-1,5}", // Invalid repetition |
| 143 | + "{5,2}", // Invalid repetition (min > max) |
| 144 | 144 | }; |
| 145 | 145 | |
| 146 | 146 | for (bad_patterns) |pattern| { |