aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-06-07 23:03:49 -0300
committerEuAndreh <eu@euandre.org>2021-06-07 23:03:49 -0300
commit04d1a20179e1fbb090c4e0e8c85d2dc36d7be6fc (patch)
tree6f9c6432937c1596427521f05943ee251b292181
parentsrc/remembering.c: Use tabs over spaces (diff)
downloadremembering-04d1a20179e1fbb090c4e0e8c85d2dc36d7be6fc.tar.gz
remembering-04d1a20179e1fbb090c4e0e8c85d2dc36d7be6fc.tar.xz
tests/ranking.sh: Use LANG=C.UTF-8 for consistent sorting
-rw-r--r--Makefile2
-rwxr-xr-xtests/ranking.sh6
2 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1b95d76..cdeb7ea 100644
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,7 @@ fallible-tests: $(sources)
check: all
./run-tests
sh tests/cli-opts.sh
- sh tests/ranking.sh
+ LANG=C.UTF-8 sh tests/ranking.sh
sh tests/signals.sh
dev-check: check fallible-tests
diff --git a/tests/ranking.sh b/tests/ranking.sh
index 4f7e376..a876f07 100755
--- a/tests/ranking.sh
+++ b/tests/ranking.sh
@@ -306,10 +306,10 @@ test_utf8_commands() {
á
è
ŭ 😀'
- EXPECTED='0:❤️
-0:á
+ EXPECTED='0:á
0:è
-1:ŭ 😀'
+1:ŭ 😀
+0:❤️'
pick_x 'ŭ 😀' "$INPUT"
assert_profile "$PROFILE" "$EXPECTED"
test_ok