Browse Source

[1136] Fix testcase to do case insensitive compare

Mukund Sivaraman 13 years ago
parent
commit
8cff3a658f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/dns/tests/rdata_sshfp_unittest.cc

+ 2 - 1
src/lib/dns/tests/rdata_sshfp_unittest.cc

@@ -26,6 +26,7 @@
 
 
 #include <dns/tests/unittest_util.h>
 #include <dns/tests/unittest_util.h>
 #include <dns/tests/rdata_unittest.h>
 #include <dns/tests/rdata_unittest.h>
+#include <boost/algorithm/string.hpp>
 
 
 using isc::UnitTestUtil;
 using isc::UnitTestUtil;
 using namespace std;
 using namespace std;
@@ -66,7 +67,7 @@ TEST_F(Rdata_SSHFP_Test, createFromWire) {
 }
 }
 
 
 TEST_F(Rdata_SSHFP_Test, toText) {
 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) {
 TEST_F(Rdata_SSHFP_Test, getSSHFPAlgorithmNumber) {