From 5ec18f426c409273599d72a4b6f98055aff8e53b Mon Sep 17 00:00:00 2001 From: Jason Rayne Date: Thu, 3 Jul 2025 23:17:46 -0700 Subject: [PATCH] tests: use ! operator instead of == false for consistency Co-authored-by: Kat <65649991+00-kat@users.noreply.github.com> --- src/cli/ssh_cache.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli/ssh_cache.zig b/src/cli/ssh_cache.zig index 71c47a7a7..e5acdfb7a 100644 --- a/src/cli/ssh_cache.zig +++ b/src/cli/ssh_cache.zig @@ -536,9 +536,9 @@ test "hostname validation - IPv6 addresses" { const testing = std.testing; try testing.expect(isValidHostname("[::1]")); try testing.expect(isValidHostname("[2001:db8::1]")); - try testing.expect(isValidHostname("[fe80::1%eth0]") == false); // Interface notation not supported - try testing.expect(isValidHostname("[]") == false); // Empty IPv6 - try testing.expect(isValidHostname("[invalid]") == false); // No colons + try testing.expect(!isValidHostname("[fe80::1%eth0]")); // Interface notation not supported + try testing.expect(!isValidHostname("[]")); // Empty IPv6 + try testing.expect(!isValidHostname("[invalid]")); // No colons } test "hostname validation - invalid cases" {