fysxasteroids/engine/tests/UtilsTests.cc

16 lines
275 B
C++
Raw Permalink Normal View History

2011-04-30 15:00:58 +02:00
#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"));
}