diff --git a/tdns/tests.cc b/tdns/tests.cc new file mode 100644 index 0000000..d6d477d --- /dev/null +++ b/tdns/tests.cc @@ -0,0 +1,30 @@ +#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file +#include "catch.hpp" + +#include "dns-storage.hh" + +using namespace std; + +TEST_CASE("DNSLabel equality", "[dnslabel]") { + DNSLabel a("www"), b("WWW"); + REQUIRE(a==b); + REQUIRE(!(a