Remove hints
Change-Id: I537619fefad6ffb6b46c5dc618f0fdcc15884d6e
diff --git a/tests/unit/ndns-label.cpp b/tests/unit/ndns-label.cpp
index 719d786..cfd650c 100644
--- a/tests/unit/ndns-label.cpp
+++ b/tests/unit/ndns-label.cpp
@@ -30,19 +30,18 @@
BOOST_AUTO_TEST_CASE(MatchInterest)
{
using namespace label;
- Name hint("/att");
Name zone("/net/ndnsim");
- Interest interest1("/att/%F0./net/ndnsim/NDNS/www/dsk-111/NS");
- Interest interest2("/att/%F0./net/ndnsim/NDNS/www/dsk-111/NS/%FD%00");
+ Interest interest1("/net/ndnsim/NDNS/www/dsk-111/NS");
+ Interest interest2("/net/ndnsim/NDNS/www/dsk-111/NS/%FD%00");
MatchResult re;
- BOOST_CHECK_EQUAL(matchName(interest1, hint, zone, re), true);
+ BOOST_CHECK_EQUAL(matchName(interest1, zone, re), true);
BOOST_CHECK_EQUAL(re.rrLabel, Name("/www/dsk-111"));
BOOST_CHECK_EQUAL(re.rrType, name::Component("NS"));
BOOST_CHECK_EQUAL(re.version, name::Component());
- BOOST_CHECK_EQUAL(matchName(interest2, hint, zone, re), true);
+ BOOST_CHECK_EQUAL(matchName(interest2, zone, re), true);
BOOST_CHECK_EQUAL(re.rrLabel, Name("/www/dsk-111"));
BOOST_CHECK_EQUAL(re.rrType, name::Component("NS"));
BOOST_CHECK_EQUAL(re.version, name::Component::fromEscapedString("%FD%00"));
@@ -51,13 +50,12 @@
BOOST_AUTO_TEST_CASE(MatchData)
{
using namespace label;
- Name hint("/att");
Name zone("/net/ndnsim");
- Data data1("/att/%F0./net/ndnsim/NDNS/www/dsk-111/NS/%FD%00");
+ Data data1("/net/ndnsim/NDNS/www/dsk-111/NS/%FD%00");
MatchResult re;
- BOOST_CHECK_EQUAL(matchName(data1, hint, zone, re), true);
+ BOOST_CHECK_EQUAL(matchName(data1, zone, re), true);
BOOST_CHECK_EQUAL(re.rrLabel, Name("/www/dsk-111"));
BOOST_CHECK_EQUAL(re.rrType, name::Component("NS"));
BOOST_REQUIRE_NO_THROW(re.version.toVersion());