| ... | @@ -673,6 +673,7 @@ const TermState = enum { | ... | @@ -673,6 +673,7 @@ const TermState = enum { |
| 673 | test "term color" { | 673 | test "term color" { |
| 674 | const input_bytes = "A\x1b[32;1mgreen\x1b[0mB"; | 674 | const input_bytes = "A\x1b[32;1mgreen\x1b[0mB"; |
| 675 | const result = try termColor(std.testing.leak_count_allocator, input_bytes); | 675 | const result = try termColor(std.testing.leak_count_allocator, input_bytes); |
| | 676 | defer std.testing.leak_count_allocator.free(result); |
| 676 | testing.expectEqualSlices(u8, "A<span class=\"t32\">green</span>B", result); | 677 | testing.expectEqualSlices(u8, "A<span class=\"t32\">green</span>B", result); |
| 677 | } | 678 | } |
| 678 | | 679 | |