name: Fixes and improvements in Name and name::Component classes
Change-Id: I4695ea252d7cd2de7d68991f5c029bd3f1b39828
diff --git a/tests/test-encode-decode-interest.cpp b/tests/test-encode-decode-interest.cpp
index db193e8..09057fb 100644
--- a/tests/test-encode-decode-interest.cpp
+++ b/tests/test-encode-decode-interest.cpp
@@ -70,7 +70,9 @@
i.setMaxSuffixComponents(1);
i.setChildSelector(1);
i.setMustBeFresh(false);
- i.getExclude().excludeOne("alex").excludeRange("xxxx", "yyyy");
+ i.getExclude()
+ .excludeOne(name::Component("alex"))
+ .excludeRange(name::Component("xxxx"), name::Component("yyyy"));
i.setNonce(1);
const Block &wire = i.wireEncode();