use even fewer single quotes

debug travis builds
This commit is contained in:
Enno Rehling 2021-04-28 19:52:45 +02:00
parent 86778665d4
commit 9cee6a8115
3 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
set -e
set -ex
ROOT=$(git rev-parse --show-toplevel)
export LUA_PATH="$ROOT/scripts/?.lua;$LUA_PATH"

View File

@ -183,9 +183,9 @@ int stream_order(struct stream *out, const struct order *ord, const struct local
assert(sk != SK_MAGIC && sk < MAXSKILLS);
text = skillname(sk, lang);
if (strchr(text, ' ') != NULL) {
swrite(" '", 1, 2, out);
swrite(" \"", 1, 2, out);
swrite(text, 1, strlen(text), out);
swrite("'", 1, 1, out);
swrite("\"", 1, 1, out);
}
else {
swrite(" ", 1, 1, out);

View File

@ -461,7 +461,7 @@ static void test_study_order_quoted(CuTest *tc) {
swrite("\n", 1, 1, &out);
out.api->rewind(out.handle);
out.api->readln(out.handle, token, sizeof(token));
CuAssertStrEquals(tc, "LERNE 'Waffenloser Kampf'", token);
CuAssertStrEquals(tc, "LERNE \"Waffenloser Kampf\"", token);
mstream_done(&out);
test_teardown();