name: Deprecation of Name::set methods, move constructors to .cpp, and documentation update
Change-Id: Icc68cad2854130fbf99c7af3378516dce0585279
Refs: #2505
diff --git a/tests/unit-tests/name.t.cpp b/tests/unit-tests/name.t.cpp
index c9030c0..6271c7a 100644
--- a/tests/unit-tests/name.t.cpp
+++ b/tests/unit-tests/name.t.cpp
@@ -164,7 +164,7 @@
BOOST_CHECK(nameEncoded == nameBlock);
Name name2;
- BOOST_REQUIRE_NO_THROW(name2.set(nameUri));
+ BOOST_REQUIRE_NO_THROW(name2 = std::move(Name(nameUri)));
Block name2Encoded = name2.wireEncode();
BOOST_CHECK(name2Encoded == nameBlock);
}