diff options
Diffstat (limited to 'test/test_cli.c')
| -rw-r--r-- | test/test_cli.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test_cli.c b/test/test_cli.c index eed7e30..86d6a2e 100644 --- a/test/test_cli.c +++ b/test/test_cli.c @@ -37,19 +37,19 @@ char *test_out_path(void) { } -char *test_vararg_index(void) { - char *argv[] = {"nekopack", "-l", "a.xp3"}; - struct params p = parse_args(3, argv); - mu_assert("Invalid vararg index", !strcmp("a.xp3", argv[p.vararg_index])); +char *test_game_id(void) { + char *argv[] = {"nekopack", "-g", "nekopara_volume_1", "a.xp3"}; + struct params p = parse_args(4, argv); + mu_assert("Incorrect game ID", p.game == NEKOPARA_VOLUME_1); free(p.out); return NULL; } -char *test_game_id(void) { - char *argv[] = {"nekopack", "-g", "nekopara_volume_1", "a.xp3"}; - struct params p = parse_args(4, argv); - mu_assert("Incorrect game ID", p.game == NEKOPARA_VOLUME_1); +char *test_vararg_index(void) { + char *argv[] = {"nekopack", "-l", "a.xp3"}; + struct params p = parse_args(3, argv); + mu_assert("Invalid vararg index", !strcmp("a.xp3", argv[p.vararg_index])); free(p.out); return NULL; } |