powerdns_tests: add description to some asserts, fix indent of disabled code
This commit is contained in:
parent
9d5314d127
commit
d0e617e846
@ -90,9 +90,16 @@ fn check(q: Type, text_input: &'static str, canonic: Option<&'static str>, raw:
|
|||||||
let d_zone_text = d_zone.text().unwrap();
|
let d_zone_text = d_zone.text().unwrap();
|
||||||
// make sure we actually know the type and the text representation
|
// make sure we actually know the type and the text representation
|
||||||
// uses the known representation (and not the generic one)
|
// uses the known representation (and not the generic one)
|
||||||
assert_eq!(Some(d_zone_text.0.as_ref()), d_zone.rr_type().known_name());
|
assert_eq!(
|
||||||
|
Some(d_zone_text.0.as_ref()),
|
||||||
|
d_zone.rr_type().known_name(),
|
||||||
|
"type uses generic representation"
|
||||||
|
);
|
||||||
// ... and the text representation matches the canonic format
|
// ... and the text representation matches the canonic format
|
||||||
assert_eq!(&d_zone_text.1, canonic);
|
assert_eq!(
|
||||||
|
&d_zone_text.1, canonic,
|
||||||
|
"canonic representation doesn't match"
|
||||||
|
);
|
||||||
// (pdns tests compares this to the input_text sometimes, because
|
// (pdns tests compares this to the input_text sometimes, because
|
||||||
// they often (TXT, DNS names) use the master file representation
|
// they often (TXT, DNS names) use the master file representation
|
||||||
// internally instead of normalizing it. This is bad for testing,
|
// internally instead of normalizing it. This is bad for testing,
|
||||||
@ -285,11 +292,11 @@ fn test_TXT() {
|
|||||||
);
|
);
|
||||||
// autosplitting not supported
|
// autosplitting not supported
|
||||||
/*
|
/*
|
||||||
check(types::TXT,
|
check(types::TXT,
|
||||||
"\"long record test 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112222222222\"",
|
"\"long record test 11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111112222222222\"",
|
||||||
Some("\"long record test 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\" \"2222222222\""),
|
Some("\"long record test 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\" \"2222222222\""),
|
||||||
b"\xfflong record test 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\x0a2222222222",
|
b"\xfflong record test 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111\x0a2222222222",
|
||||||
);
|
);
|
||||||
*/
|
*/
|
||||||
check(
|
check(
|
||||||
types::TXT,
|
types::TXT,
|
||||||
|
Loading…
Reference in New Issue
Block a user