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,
|
||||||
|
Loading…
Reference in New Issue
Block a user