diff options
Diffstat (limited to 'src/terminal/osc.zig')
| -rw-r--r-- | src/terminal/osc.zig | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/terminal/osc.zig b/src/terminal/osc.zig index 7875f2037..7619c82c1 100644 --- a/src/terminal/osc.zig +++ b/src/terminal/osc.zig @@ -1904,7 +1904,7 @@ test "OSC: get/set clipboard" { const cmd = p.end(null).?; try testing.expect(cmd == .clipboard_contents); try testing.expect(cmd.clipboard_contents.kind == 's'); - try testing.expect(std.mem.eql(u8, "?", cmd.clipboard_contents.data)); + try testing.expectEqualStrings("?", cmd.clipboard_contents.data); } test "OSC: get/set clipboard (optional parameter)" { @@ -1918,7 +1918,7 @@ test "OSC: get/set clipboard (optional parameter)" { const cmd = p.end(null).?; try testing.expect(cmd == .clipboard_contents); try testing.expect(cmd.clipboard_contents.kind == 'c'); - try testing.expect(std.mem.eql(u8, "?", cmd.clipboard_contents.data)); + try testing.expectEqualStrings("?", cmd.clipboard_contents.data); } test "OSC: get/set clipboard with allocator" { @@ -1933,7 +1933,7 @@ test "OSC: get/set clipboard with allocator" { const cmd = p.end(null).?; try testing.expect(cmd == .clipboard_contents); try testing.expect(cmd.clipboard_contents.kind == 's'); - try testing.expect(std.mem.eql(u8, "?", cmd.clipboard_contents.data)); + try testing.expectEqualStrings("?", cmd.clipboard_contents.data); } test "OSC: clear clipboard" { @@ -1948,7 +1948,7 @@ test "OSC: clear clipboard" { const cmd = p.end(null).?; try testing.expect(cmd == .clipboard_contents); try testing.expect(cmd.clipboard_contents.kind == 'c'); - try testing.expect(std.mem.eql(u8, "", cmd.clipboard_contents.data)); + try testing.expectEqualStrings("", cmd.clipboard_contents.data); } test "OSC: report pwd" { @@ -1961,7 +1961,7 @@ test "OSC: report pwd" { const cmd = p.end(null).?; try testing.expect(cmd == .report_pwd); - try testing.expect(std.mem.eql(u8, "file:///tmp/example", cmd.report_pwd.value)); + try testing.expectEqualStrings("file:///tmp/example", cmd.report_pwd.value); } test "OSC: report pwd empty" { @@ -1973,7 +1973,7 @@ test "OSC: report pwd empty" { for (input) |ch| p.next(ch); const cmd = p.end(null).?; try testing.expect(cmd == .report_pwd); - try testing.expect(std.mem.eql(u8, "", cmd.report_pwd.value)); + try testing.expectEqualStrings("", cmd.report_pwd.value); } test "OSC: pointer cursor" { @@ -1986,7 +1986,7 @@ test "OSC: pointer cursor" { const cmd = p.end(null).?; try testing.expect(cmd == .mouse_shape); - try testing.expect(std.mem.eql(u8, "pointer", cmd.mouse_shape.value)); + try testing.expectEqualStrings("pointer", cmd.mouse_shape.value); } test "OSC: longer than buffer" { |
