fysxasteroids/engine/tests/UtilsTests.cc

16 lines
275 B
C++

#include <UnitTest++.h>
#include "Utils.h"
#include <iostream>
using namespace std;
TEST (sh256_hash) {
string input ("hello");
string hash = sha256_hash (input);
CHECK_EQUAL (hash, std::string("2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"));
}