Commit 13f6a9e8 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2427] Tests for initial whitespace handling

Meaning the same name as previous
parent d0f80f2a
...@@ -121,6 +121,7 @@ public: ...@@ -121,6 +121,7 @@ public:
"1234 3600 1800 2419200 7200"); "1234 3600 1800 2419200 7200");
checkRR("example.org", RRType::NS(), "ns1.example.org."); checkRR("example.org", RRType::NS(), "ns1.example.org.");
checkRR("www.example.org", RRType::A(), "192.0.2.1"); checkRR("www.example.org", RRType::A(), "192.0.2.1");
checkRR("www.example.org", RRType::AAAA(), "2001:db8::1");
} }
void checkARR(const string& name) { void checkARR(const string& name) {
......
...@@ -13,3 +13,5 @@ example.org. 3600 IN SOA ( ; The SOA, split across lines for testing ...@@ -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. ; 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. 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment