fixing tests

This commit is contained in:
Andy Pack 2024-02-12 19:39:36 +00:00
parent 77110f964d
commit fa7a9949c1
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7

View File

@ -18,7 +18,7 @@ fn test_encode_decode()
let payload = "google.com";
let encoded = encode_domain_name(&payload.to_string());
let decoded = decode_domain_name(encoded);
let decoded = decode_domain_name(encoded).unwrap();
assert_eq!(payload, decoded);
}
@ -29,7 +29,7 @@ fn test_encode_decode_two()
let payload = "sub.domain.com";
let encoded = encode_domain_name(&payload.to_string());
let decoded = decode_domain_name(encoded);
let decoded = decode_domain_name(encoded).unwrap();
assert_eq!(payload, decoded);
}