From 80f162e63522c0eeeaf9b301237ae5eb0d31a0b6 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Fri, 13 Apr 2018 11:03:07 +0200 Subject: [PATCH] and add tests --- tdns/tests.cc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tdns/tests.cc 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