aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2020-09-12 00:53:06 +0100
committerTomasz Kramkowski <tk@the-tk.com>2020-09-12 00:53:06 +0100
commit23f2ddf2695fe4180538c940ccc6d368fc5ed1f6 (patch)
treef0b91f74cda80372a14a2b08b4ce9c7ce31193ba
parente8dc6f3d53aed8b251a37823118f20d0b06b03b0 (diff)
downloadpack-23f2ddf2695fe4180538c940ccc6d368fc5ed1f6.tar.gz
pack-23f2ddf2695fe4180538c940ccc6d368fc5ed1f6.tar.xz
pack-23f2ddf2695fe4180538c940ccc6d368fc5ed1f6.zip
test: Fix Reorder test names and descriptions
-rw-r--r--test.c6
-rw-r--r--test_gen.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/test.c b/test.c
index 1621f3b..35813d0 100644
--- a/test.c
+++ b/test.c
@@ -36,7 +36,7 @@ struct test {
#include "test.inc"
-TEST(simple0_float, "simple unpack float")
+TEST(unpack_simple0_float, "unpack simple float")
{
float v[1] = { __LINE__ };
@@ -50,7 +50,7 @@ TEST(simple0_float, "simple unpack float")
return true;
}
-TEST(simple0_double, "simple unpack double")
+TEST(unpack_simple0_double, "unpack simple double")
{
double v[1] = { __LINE__ };
@@ -64,7 +64,7 @@ TEST(simple0_double, "simple unpack double")
return true;
}
-TEST(simple_padding, "simple unpack padding")
+TEST(unpack_simple_padding, "unpack simple padding")
{
struct {
int i;
diff --git a/test_gen.c b/test_gen.c
index d6b162d..cc78c40 100644
--- a/test_gen.c
+++ b/test_gen.c
@@ -149,10 +149,10 @@ static void generate_simple(FILE *out, enum fmt fmt, int arraysize)
sign = islower(fi->fmt);
- fprintf(out, "TEST(simple%d_%s, \"simple", arraysize, cname(fi->type));
+ fprintf(out, "TEST(unpack_simple%d_%s, \"unpack simple", arraysize, cname(fi->type));
if (arraysize != 0)
fprintf(out, " array[%d]", arraysize);
- fprintf(out, " unpack %s\")\n", fi->type);
+ fprintf(out, " %s\")\n", fi->type);
fprintf(out, "{\n");
fprintf(out, "\t%s v[%d] = { ", fi->type, realsize );
for (int i = 0; i < realsize; i++)