From: Mukund Sivaraman Date: Fri, 9 Mar 2012 02:17:08 +0000 (+0530) Subject: [1136] Fix testcase to do case insensitive compare X-Git-Tag: trac2351_base~226^2~116^2~127^2~8^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8cff3a658f4c21b8e83042e475491dbdcd404983;p=thirdparty%2Fkea.git [1136] Fix testcase to do case insensitive compare --- diff --git a/src/lib/dns/tests/rdata_sshfp_unittest.cc b/src/lib/dns/tests/rdata_sshfp_unittest.cc index 39e72e9a42..5c6ba9ad36 100644 --- a/src/lib/dns/tests/rdata_sshfp_unittest.cc +++ b/src/lib/dns/tests/rdata_sshfp_unittest.cc @@ -26,6 +26,7 @@ #include #include +#include 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) {