tests: use ! operator instead of == false for consistency

Co-authored-by: Kat <65649991+00-kat@users.noreply.github.com>
pull/7608/head
Jason Rayne 2025-07-03 23:17:46 -07:00 committed by GitHub
parent 1bdcbac96c
commit 5ec18f426c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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" {