Here. Get ztags, patch it, run zig test src/Tags.zig. Maybe patch it better?
Nah, as soon as you’re capturing an output of a writer which does support escape sequences and you want to compare that with expectEqualStrings
, you will compare the escape sequence vs. the actual replaced data, which will fail. \n
vs. 0xa
, \t
vs. 0x9
.
Also, I suppose if zig fmt
insists on replacing tabs inside values, it should replace it by the escape sequence and not by a random amount of spaces. But that then means for more complicated tab-enabled inputs, you can’t properly program bulk-comparison to input texts.
ISTM there’s a valid use-case oversight here.