diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/ranking.sh | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/ranking.sh b/tests/ranking.sh index 370c61b..ea9c2c6 100755 --- a/tests/ranking.sh +++ b/tests/ranking.sh @@ -230,10 +230,24 @@ test_stdin_is_empty() { test_ok } + +test_profile_does_not_exist() { + testing 'profile does not exist' + PROFILE="profile-does-not-exist-$(uuid)" + INPUT='a +b +c +d +e' + pick_x a "$INPUT" + assert_profile "$PROFILE" "$BASE_PROFILE_A_PICKED" + test_ok +} + test_profile_is_empty() { testing 'profile is empty' PROFILE="profile-is-empty-$(uuid)" - echo '' > "$XDG_DATA_HOME/$PROFILE" + printf '' > "$XDG_DATA_HOME/$PROFILE" INPUT='a b c @@ -253,4 +267,5 @@ test_stdin_profile_merging test_stdin_is_larger_than_profile test_stdin_is_smaller_than_profile test_stdin_is_empty +test_profile_does_not_exist test_profile_is_empty |