|
@@ -61,6 +61,14 @@ typedef testing::Types<generic::DS, generic::DLV> Implementations;
|
|
|
|
|
|
TYPED_TEST_CASE(Rdata_DS_LIKE_Test, Implementations);
|
|
|
|
|
|
+TYPED_TEST(Rdata_DS_LIKE_Test, createFromText) {
|
|
|
+ // It's valid for the digest's presentation format to contain
|
|
|
+ // spaces. See RFC4034 section 5.3.
|
|
|
+ EXPECT_EQ(0, this->rdata_ds_like.compare(
|
|
|
+ TypeParam("12892 5 2 F1E184C0E1D615D20EB3C223ACED3B03C773DD952D5F0EB5"
|
|
|
+ "C777 586DE18 \t DA6B5")));
|
|
|
+}
|
|
|
+
|
|
|
TYPED_TEST(Rdata_DS_LIKE_Test, toText_DS_LIKE) {
|
|
|
EXPECT_EQ(ds_like_txt, this->rdata_ds_like.toText());
|
|
|
}
|