Browse Source

[2086] add one more test

Jelte Jansen 12 years ago
parent
commit
6498dfa591
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/lib/dns/tests/labelsequence_unittest.cc

+ 6 - 1
src/lib/dns/tests/labelsequence_unittest.cc

@@ -709,7 +709,12 @@ TEST(LabelSequence, rawConstruction) {
               result.getRelation());
 
     s1.stripRight(1);
-    s2.stripRight(1);
+    s3.stripRight(1);
+
+    result = s1.compare(s3);
+    EXPECT_EQ(isc::dns::NameComparisonResult::COMMONANCESTOR,
+              result.getRelation());
+
     data[9] = 'f';
     result = s1.compare(s3);
     EXPECT_EQ(isc::dns::NameComparisonResult::NONE,