mirror of
https://github.com/eosswedenorg/libantelope
synced 2026-06-28 04:53:39 +02:00
tests/hash: fix bug in MSVC compiler.
This commit is contained in:
parent
7e9bd41a83
commit
e15a5ede18
2 changed files with 9 additions and 0 deletions
|
|
@ -52,6 +52,9 @@ TEST_CASE("hash::ripemd160::init/update/final") {
|
||||||
const char *name;
|
const char *name;
|
||||||
std::vector<std::string> inputs;
|
std::vector<std::string> inputs;
|
||||||
libantelope::ripemd160_t expected;
|
libantelope::ripemd160_t expected;
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
char _; // ripemd160_t can't be last, wierd compiler bug on MSVC
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
std::vector<testcase> tests = {
|
std::vector<testcase> tests = {
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,9 @@ TEST_CASE("hash::sha256::sha256d") {
|
||||||
const char *name;
|
const char *name;
|
||||||
std::string input;
|
std::string input;
|
||||||
libantelope::sha256_t expected;
|
libantelope::sha256_t expected;
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
char _; // sha256_t can't be last, wierd compiler bug on MSVC
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
std::vector<testcase> tests = {
|
std::vector<testcase> tests = {
|
||||||
|
|
@ -106,6 +109,9 @@ TEST_CASE("hash::sha256::init/update/final") {
|
||||||
const char *name;
|
const char *name;
|
||||||
std::vector<std::string> inputs;
|
std::vector<std::string> inputs;
|
||||||
libantelope::sha256_t expected;
|
libantelope::sha256_t expected;
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
char _; // sha256_t can't be last, wierd compiler bug on MSVC
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
std::vector<testcase> tests = {
|
std::vector<testcase> tests = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue