mirror of
https://github.com/eosswedenorg/libantelope
synced 2026-06-17 20:10:03 +02:00
tests/WIF: move structs local to test functions.
This commit is contained in:
parent
12a3be919a
commit
65f93f061c
2 changed files with 15 additions and 13 deletions
|
|
@ -4,13 +4,14 @@
|
|||
#include <vector>
|
||||
#include <doctest.h>
|
||||
|
||||
struct testcase {
|
||||
std::string name;
|
||||
libeosio::ec_privkey_t key;
|
||||
std::string expected;
|
||||
};
|
||||
|
||||
TEST_CASE("WIF::wif_priv_encode") {
|
||||
|
||||
struct testcase {
|
||||
std::string name;
|
||||
libeosio::ec_privkey_t key;
|
||||
std::string expected;
|
||||
};
|
||||
|
||||
std::vector<struct testcase> tests {
|
||||
{ "one", { 0x0C, 0x28, 0xFC, 0xA3, 0x86, 0xC7, 0xA2, 0x27, 0x60, 0x0B, 0x2F, 0xE5, 0x0B, 0x7C, 0xAE, 0x11, 0xEC, 0x86, 0xD3, 0xBF, 0x1F, 0xBE, 0x47, 0x1B, 0xE8, 0x98, 0x27, 0xE1, 0x9D,0x72,0xAA,0x1D}, "5HueCGU8rMjxEXxiPuD5BDku4MkFqeZyd4dZ1jvhTVqvbTLvyTJ" },
|
||||
{ "two", { 0x9F, 0xE3, 0xE3, 0x2B, 0x3C, 0x4B, 0x6B, 0x91, 0x6E, 0x20, 0x6C, 0xB0, 0x91, 0xDF, 0x1F, 0x5E, 0x34, 0x32, 0x88, 0x0B, 0x41, 0x33, 0x86, 0xBD, 0xF2, 0x92, 0xFF, 0x23, 0x06, 0x43, 0xF2, 0x8C}, "5K2hm8apqz281ANDQdtVzifpxcXFTqG5E7Fc6Q5V2ssqPRQ3urJ" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue