Loading tests/testHash.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -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) { Loading @@ -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) { Loading tests/test_hash.exe 0 → 100644 +72.5 KiB File added.No diff preview for this file type. View file Loading
tests/testHash.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -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) { Loading @@ -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) { Loading