test(terminal/osc): fix command longer than buffer test

Ensure that the state is invalidated properly, this previously wasn't
the case but was fixed in 03fd9a97
This commit is contained in:
Qwerasd
2025-02-10 13:27:26 -05:00
parent 03fd9a970b
commit 1c524238c8

View File

@ -1660,10 +1660,11 @@ test "OSC: longer than buffer" {
var p: Parser = .{};
const input = "a" ** (Parser.MAX_BUF + 2);
const input = "0;" ++ "a" ** (Parser.MAX_BUF + 2);
for (input) |ch| p.next(ch);
try testing.expect(p.end(null) == null);
try testing.expect(p.complete == false);
}
test "OSC: report default foreground color" {