diff options
author | EuAndreh <eu@euandre.org> | 2021-01-31 16:21:05 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-01-31 16:21:05 -0300 |
commit | 016669fbe27f60c90de64e21ce34b298e2896d00 (patch) | |
tree | 86d63e6eab9cd91b268a2f320b2a86d08b245b71 | |
parent | aux/ci/: Use /srv over /data path (diff) | |
download | remembering-016669fbe27f60c90de64e21ce34b298e2896d00.tar.gz remembering-016669fbe27f60c90de64e21ce34b298e2896d00.tar.xz |
Add (commented) test_really_long_list
-rw-r--r-- | TODOs.md | 3 | ||||
-rwxr-xr-x | tests/ranking.sh | 18 |
2 files changed, 21 insertions, 0 deletions
@@ -1,5 +1,8 @@ # Tasks +## TODO Make `test_really_long_list` runnable {#task-c1129666-b373-4b9d-8e10-927689048b05} +- TODO in 2021-01-31 + ## TODO Improve speed even further {#task-05c7f068-e935-457f-89ea-1f38227e7779} - TODO in 2021-01-29 diff --git a/tests/ranking.sh b/tests/ranking.sh index c383b59..aca5ec4 100755 --- a/tests/ranking.sh +++ b/tests/ranking.sh @@ -279,6 +279,23 @@ d e f' test_ok } +test_really_long_list() { + testing 'really long list' + OUT="$(mktemp)" + ERR="$(mktemp)" + PROFILE="really-long-list-$(uuid)" + seq 999999 | \ + sh remembering \ + -p "$PROFILE" \ + -c 'head -n1' \ + 1>"$OUT" 2>"$ERR" + STATUS=$? + assert_status 0 + assert_empty_stderr + assert_stdout '1' + test_ok +} + test_picking_first_makes_it_be_always_first test_promoting_values test_higher_values_loose_tie @@ -291,3 +308,4 @@ test_stdin_is_empty test_profile_does_not_exist test_profile_is_empty test_names_with_spaces +# test_really_long_list |