Browse Source

[2427] Tests for initial whitespace handling

Meaning the same name as previous
Michal 'vorner' Vaner 12 years ago
parent
commit
13f6a9e896

+ 1 - 0
src/lib/dns/tests/master_loader_unittest.cc

@@ -121,6 +121,7 @@ public:
                 "1234 3600 1800 2419200 7200");
         checkRR("example.org", RRType::NS(), "ns1.example.org.");
         checkRR("www.example.org", RRType::A(), "192.0.2.1");
+        checkRR("www.example.org", RRType::AAAA(), "2001:db8::1");
     }
 
     void checkARR(const string& name) {

+ 2 - 0
src/lib/dns/tests/testdata/example.org

@@ -13,3 +13,5 @@ example.org.        3600    IN  SOA ( ; The SOA, split across lines for testing
 
 ; Some empty lines here. They are to make sure the loader can skip them.
 www                 3600    IN  A 192.0.2.1 ; Test a relative name as well.
+                    3600    IN  AAAA    2001:db8::1 ; And initial whitespace hanling
+         ; Here be just some space, no RRs