Skip to content

Commit

Permalink
Refactor SrvRdata serialization and add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Litr0 committed Jul 17, 2024
1 parent c4baccf commit a61a4bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/message/rdata/srv_rdata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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();
Expand Down

0 comments on commit a61a4bc

Please sign in to comment.