From a61a4bca453e5d5f9aadb40b9a1f14ab22529fc2 Mon Sep 17 00:00:00 2001 From: Litr0 Date: Wed, 17 Jul 2024 17:42:14 -0400 Subject: [PATCH] Refactor SrvRdata serialization and add tests --- src/message/rdata/srv_rdata.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/message/rdata/srv_rdata.rs b/src/message/rdata/srv_rdata.rs index 3a2e7fc2..34e9770f 100644 --- a/src/message/rdata/srv_rdata.rs +++ b/src/message/rdata/srv_rdata.rs @@ -186,7 +186,8 @@ mod srv_rdata_tests { 0, 2, 0, 3, 3, 119, 119, 119, - 7, 101, 120, 97, 109, 112, 108, 101, 3, 99, 111, 109, + 7, 101, 120, 97, 109, 112, 108, 101, + 3, 99, 111, 109, 0]; assert_eq!(bytes, expected_bytes); } @@ -197,7 +198,8 @@ mod srv_rdata_tests { 0, 2, 0, 3, 3, 119, 119, 119, - 7, 101, 120, 97, 109, 112, 108, 101, 3, 99, 111, 109, + 7, 101, 120, 97, 109, 112, 108, 101, + 3, 99, 111, 109, 0]; let srv_rdata = SrvRdata::from_bytes(&bytes, &bytes).unwrap();