]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1136] Fix testcase to do case insensitive compare
authorMukund Sivaraman <muks@isc.org>
Fri, 9 Mar 2012 02:17:08 +0000 (07:47 +0530)
committerMukund Sivaraman <muks@isc.org>
Sun, 11 Mar 2012 09:01:16 +0000 (14:31 +0530)
src/lib/dns/tests/rdata_sshfp_unittest.cc

index 39e72e9a422a34a7f7ed30fa9291aa93947ab355..5c6ba9ad3632d38f7ef7b05c1b458ff8f9dcc5b7 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <dns/tests/unittest_util.h>
 #include <dns/tests/rdata_unittest.h>
+#include <boost/algorithm/string.hpp>
 
 using isc::UnitTestUtil;
 using namespace std;
@@ -66,7 +67,7 @@ TEST_F(Rdata_SSHFP_Test, createFromWire) {
 }
 
 TEST_F(Rdata_SSHFP_Test, toText) {
-    EXPECT_EQ("2 1 123456789abcdef67890123456789abcdef67890", rdata_sshfp.toText());
+    EXPECT_TRUE(boost::iequals(sshfp_txt, rdata_sshfp.toText()));
 }
 
 TEST_F(Rdata_SSHFP_Test, getSSHFPAlgorithmNumber) {