mirror of
https://github.com/eosswedenorg/libantelope
synced 2026-06-17 12:00:02 +02:00
Change namespace and header guards from libeosio to libantelope
This commit is contained in:
parent
0cfd459c71
commit
6824a2f49e
32 changed files with 176 additions and 176 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#include <libeosio/ec.hpp>
|
||||
#include <libeosio/WIF.hpp>
|
||||
#include <libantelope/ec.hpp>
|
||||
#include <libantelope/WIF.hpp>
|
||||
#include <vector>
|
||||
#include <doctest.h>
|
||||
|
||||
|
|
@ -8,8 +8,8 @@ TEST_CASE("ec::pubkey") {
|
|||
|
||||
struct testcase {
|
||||
std::string name;
|
||||
libeosio::ec_privkey_t priv;
|
||||
libeosio::ec_pubkey_t expected;
|
||||
libantelope::ec_privkey_t priv;
|
||||
libantelope::ec_pubkey_t expected;
|
||||
};
|
||||
|
||||
std::vector<struct testcase> tests {
|
||||
|
|
@ -125,16 +125,16 @@ TEST_CASE("ec::pubkey") {
|
|||
}
|
||||
};
|
||||
|
||||
libeosio::ec_init();
|
||||
libantelope::ec_init();
|
||||
|
||||
for(auto it = tests.begin(); it != tests.end(); it++) {
|
||||
|
||||
SUBCASE(it->name.c_str()) {
|
||||
libeosio::ec_pubkey_t result;
|
||||
CHECK( libeosio::ec_get_publickey(&it->priv, &result) == 0 );
|
||||
libantelope::ec_pubkey_t result;
|
||||
CHECK( libantelope::ec_get_publickey(&it->priv, &result) == 0 );
|
||||
CHECK( result == it->expected );
|
||||
}
|
||||
}
|
||||
|
||||
libeosio::ec_shutdown();
|
||||
libantelope::ec_shutdown();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue