mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-22 11:46:11 +03:00
terminal: additional parse test cases
This commit is contained in:
@ -1451,6 +1451,18 @@ test "OSC: hyperlink with empty key and id" {
|
||||
try testing.expectEqualStrings(cmd.hyperlink_start.uri, "http://example.com");
|
||||
}
|
||||
|
||||
test "OSC: hyperlink with empty uri" {
|
||||
const testing = std.testing;
|
||||
|
||||
var p: Parser = .{};
|
||||
|
||||
const input = "8;id=foo;";
|
||||
for (input) |ch| p.next(ch);
|
||||
|
||||
const cmd = p.end('\x1b');
|
||||
try testing.expect(cmd == null);
|
||||
}
|
||||
|
||||
test "OSC: hyperlink end" {
|
||||
const testing = std.testing;
|
||||
|
||||
|
Reference in New Issue
Block a user