diff options
Diffstat (limited to 'test/pkstn.cpp')
| -rw-r--r-- | test/pkstn.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/pkstn.cpp b/test/pkstn.cpp index 261fb56..920c6ac 100644 --- a/test/pkstn.cpp +++ b/test/pkstn.cpp @@ -8,14 +8,14 @@ int main(int argc, char *argv[]) { (void)argc; (void)argv; - enum PK_STN_ERR res = {}; + enum PK_STN_RES res = {}; // stn_int64_t { int64_t i = {0}; res = pk_stn_int64_t(&i, "-1", 0); fprintf(stdout, "pkstn: stn_int64_t res: %ld\n", i); - if (res != PK_STN_ERR_SUCCESS) exit(1); + if (res != PK_STN_RES_SUCCESS) exit(1); if (-1 != i) exit(1); } @@ -24,7 +24,7 @@ int main(int argc, char *argv[]) uint64_t i = {0}; res = pk_stn_uint64_t(&i, "1", 0); fprintf(stdout, "pkstn: stn_uint64_t res: %lu\n", i); - if (res != PK_STN_ERR_SUCCESS) exit(1); + if (res != PK_STN_RES_SUCCESS) exit(1); if (1 != i) exit(1); } @@ -33,7 +33,7 @@ int main(int argc, char *argv[]) int32_t i = {0}; res = pk_stn_int32_t(&i, "-1", 0); fprintf(stdout, "pkstn: stn_int32_t res: %d\n", i); - if (res != PK_STN_ERR_SUCCESS) exit(1); + if (res != PK_STN_RES_SUCCESS) exit(1); if (-1 != i) exit(1); } @@ -42,7 +42,7 @@ int main(int argc, char *argv[]) uint32_t i = {0}; res = pk_stn_uint32_t(&i, "1", 0); fprintf(stdout, "pkstn: stn_uint32_t res: %u\n", i); - if (res != PK_STN_ERR_SUCCESS) exit(1); + if (res != PK_STN_RES_SUCCESS) exit(1); if (1 != i) exit(1); } @@ -51,7 +51,7 @@ int main(int argc, char *argv[]) int16_t i = {0}; res = pk_stn_int16_t(&i, "-1", 0); fprintf(stdout, "pkstn: stn_int16_t res: %d\n", i); - if (res != PK_STN_ERR_SUCCESS) exit(1); + if (res != PK_STN_RES_SUCCESS) exit(1); if (-1 != i) exit(1); } @@ -60,7 +60,7 @@ int main(int argc, char *argv[]) uint16_t i = {0}; res = pk_stn_uint16_t(&i, "1", 0); fprintf(stdout, "pkstn: stn_uint16_t res: %u\n", i); - if (res != PK_STN_ERR_SUCCESS) exit(1); + if (res != PK_STN_RES_SUCCESS) exit(1); if (1 != i) exit(1); } @@ -69,7 +69,7 @@ int main(int argc, char *argv[]) int8_t i = {0}; res = pk_stn_int8_t(&i, "-1", 0); fprintf(stdout, "pkstn: stn_int8_t res: %d\n", i); - if (res != PK_STN_ERR_SUCCESS) exit(1); + if (res != PK_STN_RES_SUCCESS) exit(1); if (-1 != i) exit(1); } @@ -78,7 +78,7 @@ int main(int argc, char *argv[]) uint8_t i = {0}; res = pk_stn_uint8_t(&i, "1", 0); fprintf(stdout, "pkstn: stn_uint8_t res: %u\n", i); - if (res != PK_STN_ERR_SUCCESS) exit(1); + if (res != PK_STN_RES_SUCCESS) exit(1); if (1 != i) exit(1); } @@ -87,7 +87,7 @@ int main(int argc, char *argv[]) float f = {0}; res = pk_stn_float(&f, "-1"); fprintf(stdout, "pkstn: stn_float res: %f\n", f); - if (res != PK_STN_ERR_SUCCESS) exit(1); + if (res != PK_STN_RES_SUCCESS) exit(1); if (-1 != f) exit(1); } @@ -96,7 +96,7 @@ int main(int argc, char *argv[]) double f = {0}; res = pk_stn_double(&f, "-1"); fprintf(stdout, "pkstn: stn_double res: %f\n", f); - if (res != PK_STN_ERR_SUCCESS) exit(1); + if (res != PK_STN_RES_SUCCESS) exit(1); if (-1 != f) exit(1); } |
