aboutsummaryrefslogtreecommitdiff
path: root/tests/ranking.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-24 03:31:07 -0300
committerEuAndreh <eu@euandre.org>2021-01-24 03:32:37 -0300
commitc5137cbba365abcf9f637e7a982b54bcb0e9fcba (patch)
tree29dd311cf7495f85defcd09533410b6a76366ebc /tests/ranking.sh
parentTODOs.md: Mark task-b2c26218-5f21-4efd-afbd-ff6af57a358a as CANCELLED (diff)
downloadremembering-c5137cbba365abcf9f637e7a982b54bcb0e9fcba.tar.gz
remembering-c5137cbba365abcf9f637e7a982b54bcb0e9fcba.tar.xz
Stop depending on uuidgen
Diffstat (limited to '')
-rwxr-xr-xtests/ranking.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/ranking.sh b/tests/ranking.sh
index 4d8a7e7..5dec051 100755
--- a/tests/ranking.sh
+++ b/tests/ranking.sh
@@ -6,7 +6,7 @@ set -eu
test_picking_first_makes_it_be_always_first() {
OUT="$(mktemp)"
ERR="$(mktemp)"
- PROFILE="always-picks-first-$(uuidgen)"
+ PROFILE="always-picks-first-$(uuid)"
for _ in $(seq 10); do
printf 'always-picked\nnever-picked\n' | \
sh remembering \
@@ -71,7 +71,7 @@ assert_first() {
}
test_promoting_values() {
- PROFILE="promoting-$(uuidgen)"
+ PROFILE="promoting-$(uuid)"
pick_x h
pick_x z # just to get the new STDIN
@@ -83,7 +83,7 @@ test_promoting_values() {
}
test_higher_values_loose_tie() {
- PROFILE="higher-loose-tie-$(uuidgen)"
+ PROFILE="higher-loose-tie-$(uuid)"
pick_x f
pick_x f
@@ -94,7 +94,7 @@ test_higher_values_loose_tie() {
}
test_smaller_values_win_tie() {
- PROFILE="smaller-win-tie-$(uuidgen)"
+ PROFILE="smaller-win-tie-$(uuid)"
pick_x d
pick_x d
@@ -105,7 +105,7 @@ test_smaller_values_win_tie() {
}
test_many_sequential_picks() {
- PROFILE="many-sequential-picks-$(uuidgen)"
+ PROFILE="many-sequential-picks-$(uuid)"
pick_x b
pick_x r