diff options
author | EuAndreh <eu@euandre.org> | 2021-01-26 13:15:50 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-01-26 13:15:50 -0300 |
commit | 000b74b1140f2ac41cb5d00a9070db735abdc9c4 (patch) | |
tree | 03f8093c5028a3c72880987a211c7f8a4970eb25 /tests/ranking.sh | |
parent | Move other Guix files under build-aux/guix/ (diff) | |
download | remembering-000b74b1140f2ac41cb5d00a9070db735abdc9c4.tar.gz remembering-000b74b1140f2ac41cb5d00a9070db735abdc9c4.tar.xz |
remembering: Refactor with awk + sort; make it faster
Diffstat (limited to '')
-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 |