aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ranking.sh19
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/ranking.sh b/tests/ranking.sh
index 3b9ac6e..4f7e376 100755
--- a/tests/ranking.sh
+++ b/tests/ranking.sh
@@ -271,7 +271,7 @@ e'
}
test_names_with_spaces() {
- testing 'Names with spaces'
+ testing 'names with spaces'
PROFILE="names-with-spaces-$(uuid)"
INPUT='a b c
d e f'
@@ -299,6 +299,22 @@ test_really_long_list() {
test_ok
}
+test_utf8_commands() {
+ testing 'UTF-8 commands'
+ PROFILE="utf8-commands-$(uuid)"
+ INPUT='❤️
+ŭ 😀'
+ EXPECTED='0:❤️
+0:á
+0:è
+1:ŭ 😀'
+ pick_x 'ŭ 😀' "$INPUT"
+ assert_profile "$PROFILE" "$EXPECTED"
+ test_ok
+}
+
test_picking_first_makes_it_be_always_first
test_promoting_values
test_higher_values_loose_tie
@@ -312,3 +328,4 @@ test_profile_does_not_exist
test_profile_is_empty
test_names_with_spaces
# test_really_long_list
+test_utf8_commands