summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2024-12-10 16:24:20 -0500
committerJonathan Bradley <jcb@pikum.xyz>2024-12-10 16:24:20 -0500
commit243866a7ae51a7187832cc5bf7e5e6d8a0fd2202 (patch)
tree641f332b90a3ab9174f0306396417048cdac19ec /test
parent97a9b70bc2f779b9267d02c255628fd7895a53b3 (diff)
pk.h: bump version number
Diffstat (limited to 'test')
-rw-r--r--test/pkstn.c22
-rw-r--r--test/pkstn.cpp22
2 files changed, 22 insertions, 22 deletions
diff --git a/test/pkstn.c b/test/pkstn.c
index 97ec8a9..8884804 100644
--- a/test/pkstn.c
+++ b/test/pkstn.c
@@ -8,14 +8,14 @@ int main(int argc, char *argv[])
{
(void)argc;
(void)argv;
- enum PK_STN_ERR res = {0};
+ enum PK_STN_RES res = {0};
// 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);
}
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);
}