@@ -176,7 +176,8 @@ const TapParser = struct {
176
176
// Failure parsing
177
177
.desc = > {
178
178
const name_start = skip (line , keyword .spacer1 , keyword .not_ok .len ) orelse @panic ("expected spacer" );
179
- try p .wip_failure .description .appendSlice (step_arena , line [name_start .. ]);
179
+ const name = std .mem .trim (u8 , line [name_start .. ], & std .ascii .whitespace );
180
+ try p .wip_failure .description .appendSlice (step_arena , name );
180
181
try p .wip_failure .description .appendSlice (step_arena , ": " );
181
182
p .state = .yaml_start ;
182
183
},
@@ -198,14 +199,15 @@ const TapParser = struct {
198
199
},
199
200
.file = > {
200
201
const file_start = skip (line , keyword .file , 0 ) orelse @panic ("expected file" );
201
- const file = std .mem .trim (u8 , line [file_start .. ], &.{ ' \' ' } );
202
+ const file = std .mem .trim (u8 , line [file_start .. ], std . ascii . whitespace ++ "'" );
202
203
try p .wip_failure .description .appendSlice (step_arena , file );
203
204
try p .wip_failure .description .append (step_arena , ':' );
204
205
p .state = .line ;
205
206
},
206
207
.line = > {
207
208
const line_start = skip (line , keyword .line , 0 ) orelse @panic ("expected line" );
208
- try p .wip_failure .description .appendSlice (step_arena , line [line_start .. ]);
209
+ const fail_line = std .mem .trim (u8 , line [line_start .. ], & std .ascii .whitespace );
210
+ try p .wip_failure .description .appendSlice (step_arena , fail_line );
209
211
p .state = .start ;
210
212
return .{ .failure = p .wip_failure };
211
213
},
0 commit comments