From 9a9ec634d560b458b216bd1c2a7033c0b7d78339 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 6 Jun 2021 16:54:35 -0300 Subject: tests/ranking.sh: Add test_utf_commands --- tests/ranking.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.3