Commit 122574fc authored by XingyuChen's avatar XingyuChen
Browse files

update to template version

parent db268235
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ bool failExample(const char* testName,
bool test_0() {
  const char* T = "Provided example with nonce 2";

  string got = mining_hash("The quick brown fox jumps over the lazy dog.", 2ULL);
  string got = mining_hash<unsigned long long>("The quick brown fox jumps over the lazy dog.", 2ULL);
  string expected = "114129918868003668674860640176";

  if (got != expected) {
@@ -45,7 +45,7 @@ bool test_0() {
bool test_1() {
  const char* T = "Provided example with nonce 155";

  string got = mining_hash("The quick brown fox jumps over the lazy dog.", 155ULL);
  string got = mining_hash<unsigned long long>("The quick brown fox jumps over the lazy dog.", 155ULL);
  string expected = "224347652901828190347249710002";

  if (got != expected) {

tests/test_hash.exe

0 → 100644
+72.5 KiB

File added.

No diff preview for this file type.