Browse Source

[trac806] corrected comments in Rdata_RP_Test.toWireRenderer about compression.
the previous one was wrong due to naive copy-paste.

JINMEI Tatuya 14 years ago
parent
commit
fb99e325e6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/lib/dns/tests/rdata_rp_unittest.cc

+ 4 - 1
src/lib/dns/tests/rdata_rp_unittest.cc

@@ -119,7 +119,10 @@ TEST_F(Rdata_RP_Test, toWireBuffer) {
 }
 }
 
 
 TEST_F(Rdata_RP_Test, toWireRenderer) {
 TEST_F(Rdata_RP_Test, toWireRenderer) {
-    // similar to toWireBuffer, but names in RDATA should be compressed.
+    // similar to toWireBuffer, but names in RDATA could be compressed due to
+    // preceding names.  Actually they must not be compressed according to
+    // RFC3597, and this test checks that.
+
     UnitTestUtil::readWireData("rdata_rp_toWire2.wire", expected_wire);
     UnitTestUtil::readWireData("rdata_rp_toWire2.wire", expected_wire);
 
 
     renderer.writeName(Name("a.example.com"));
     renderer.writeName(Name("a.example.com"));