1
0
Fork 0
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:
Henrik Hautakoski 2023-04-06 14:23:05 +02:00
parent 0cfd459c71
commit 6824a2f49e
32 changed files with 176 additions and 176 deletions

View file

@ -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();
}