for test sha256
diff --git a/model/sync-logic.cc b/model/sync-logic.cc
index 1e99e84..6d56764 100644
--- a/model/sync-logic.cc
+++ b/model/sync-logic.cc
@@ -34,7 +34,7 @@
using namespace std;
using namespace boost;
-// INIT_LOGGER ("SyncLogic");
+INIT_LOGGER ("SyncLogic");
namespace Sync
{
diff --git a/test/test_digest.cc b/test/test_digest.cc
index d7ddbf5..5a0b4de 100644
--- a/test/test_digest.cc
+++ b/test/test_digest.cc
@@ -61,8 +61,10 @@
output_test_stream output;
BOOST_CHECK_NO_THROW (output << d1);
- BOOST_CHECK (output.check_length (40,false) );
- BOOST_CHECK (output.is_equal ("e5fa44f2b31c1fb553b6021e7360d07d5d91ff5e", true));
+ // BOOST_CHECK (output.check_length (40, false) );
+ // BOOST_CHECK (output.is_equal ("e5fa44f2b31c1fb553b6021e7360d07d5d91ff5e", true)); // for sha1
+ BOOST_CHECK (output.check_length (64, false) );
+ BOOST_CHECK (output.is_equal ("4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865", true)); // for sha256
}
BOOST_AUTO_TEST_CASE (DigestComparison)
@@ -79,7 +81,8 @@
BOOST_CHECK (d1 != d2);
Digest d3;
- istringstream is (string ("e5fa44f2b31c1fb553b6021e7360d07d5d91ff5e")); //real sha-1 for "1\n"
+ // istringstream is (string ("e5fa44f2b31c1fb553b6021e7360d07d5d91ff5e")); // real sha-1 for "1\n"
+ istringstream is (string ("4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865")); // real sha256 for "1\n"
BOOST_CHECK_NO_THROW (is >> d3);
BOOST_CHECK (!d3.empty ());
BOOST_CHECK (d3 == d1);
diff --git a/test/test_leaf.cc b/test/test_leaf.cc
index 0c8409f..0ba4401 100644
--- a/test/test_leaf.cc
+++ b/test/test_leaf.cc
@@ -95,12 +95,14 @@
output_test_stream output;
output << fullLeaf.getDigest ();
- BOOST_CHECK (output.is_equal ("991f8cf6262dfe0f519c63f6e9b92fe69e741a9b", true));
+ // BOOST_CHECK (output.is_equal ("991f8cf6262dfe0f519c63f6e9b92fe69e741a9b", true)); // for sha1
+ BOOST_CHECK (output.is_equal ("526d63e6e1f05f97502fd500a1729c4907f3841483ae4561b7e6307c40188f35", true)); // for sha256
fullLeaf.setSeq (SeqNo (13));
output << fullLeaf.getDigest ();
BOOST_CHECK (!output.is_equal ("991f8cf6262dfe0f519c63f6e9b92fe69e741a9b", false));
- BOOST_CHECK (output.is_equal ("585a8687ab41d5c29f86e5906c8f188ddca816b3", true));
+ // BOOST_CHECK (output.is_equal ("585a8687ab41d5c29f86e5906c8f188ddca816b3", true)); // for sha1
+ BOOST_CHECK (output.is_equal ("39fefe65b3e1021776c07d3a9a3023c6c7cdf12724ee7f3a98b813b22f46d5ec", true)); // for sha256
}
BOOST_AUTO_TEST_SUITE_END()