status = argpar_iter_next(iter, &item, &error);
ok(status == ARGPAR_ITER_NEXT_STATUS_OK || status == ARGPAR_ITER_NEXT_STATUS_END,
- "argpar_iter_next() returns the expected status (%d) for command line `%s` (call %u)",
+ "argpar_iter_next() returns the expected status (%d) for command line `%s` (call #%u)",
status, cmdline, i + 1);
- ok(!error, "argpar_iter_next() doesn't set an error for command line `%s` (call %u)",
+ ok(!error, "argpar_iter_next() doesn't set an error for command line `%s` (call #%u)",
cmdline, i + 1);
if (status == ARGPAR_ITER_NEXT_STATUS_END) {
ok(!item,
"argpar_iter_next() doesn't set an item for status `ARGPAR_ITER_NEXT_STATUS_END` "
- "and command line `%s` (call %u)",
+ "and command line `%s` (call #%u)",
cmdline, i + 1);
break;
}
(status == ARGPAR_ITER_NEXT_STATUS_ERROR &&
argpar_error_type(error) == expected_error_type),
"argpar_iter_next() returns the expected status and error type (%d) "
- "for command line `%s` (call %u)",
+ "for command line `%s` (call #%u)",
expected_error_type, cmdline, i + 1);
if (status != ARGPAR_ITER_NEXT_STATUS_OK) {
ok(!item,
"argpar_iter_next() doesn't set an item for other status than "
- "`ARGPAR_ITER_NEXT_STATUS_OK` and command line `%s` (call %u)",
+ "`ARGPAR_ITER_NEXT_STATUS_OK` and command line `%s` (call #%u)",
cmdline, i + 1);
ok(error,
"argpar_iter_next() sets an error for other status than "
- "`ARGPAR_ITER_NEXT_STATUS_OK` and command line `%s` (call %u)",
+ "`ARGPAR_ITER_NEXT_STATUS_OK` and command line `%s` (call #%u)",
cmdline, i + 1);
ok(argpar_error_orig_index(error) == expected_orig_index,
"argpar_iter_next() sets an error with the expected original argument index "
- "for command line `%s` (call %u)",
+ "for command line `%s` (call #%u)",
cmdline, i + 1);
if (argpar_error_type(error) == ARGPAR_ERROR_TYPE_UNKNOWN_OPT) {
ok(strcmp(argpar_error_unknown_opt_name(error), expected_unknown_opt_name) == 0,
"argpar_iter_next() sets an error with the expected unknown option name "
- "for command line `%s` (call %u)",
+ "for command line `%s` (call #%u)",
cmdline, i + 1);
} else {
bool is_short;
ok(argpar_error_opt_descr(error, &is_short) == &descrs[expected_opt_descr_index],
"argpar_iter_next() sets an error with the expected option descriptor "
- "for command line `%s` (call %u)",
+ "for command line `%s` (call #%u)",
cmdline, i + 1);
ok(is_short == expected_is_short,
"argpar_iter_next() sets an error with the expected option type "
- "for command line `%s` (call %u)",
+ "for command line `%s` (call #%u)",
cmdline, i + 1);
}
break;
ok(item,
"argpar_iter_next() sets an item for status `ARGPAR_ITER_NEXT_STATUS_OK` "
- "and command line `%s` (call %u)",
+ "and command line `%s` (call #%u)",
cmdline, i + 1);
ok(!error,
"argpar_iter_next() doesn't set an error for status `ARGPAR_ITER_NEXT_STATUS_OK` "
- "and command line `%s` (call %u)",
+ "and command line `%s` (call #%u)",
cmdline, i + 1);
}