🍽 Fork YunoHost — snapshot mangé par la machine à tsoins
Upstream: https://github.com/YunoHost/yunohost @ 3a5f8bac8301c450897b96cbd43a4c7d3ba750fb But (José) : transformer tout le code en bions + ploxions du xerboxion. La carte de digestion vit au labo : /yunohost-digest.json
This commit is contained in:
12
tests/test_helpers.v2.1.d/ynhtest_string.sh
Normal file
12
tests/test_helpers.v2.1.d/ynhtest_string.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ynhtest_string_random() {
|
||||
declare -A results
|
||||
for _ in $(seq 1 1000); do
|
||||
local result="$(ynh_string_random --length=64 --filter='a-f0-9')"
|
||||
test -n "${result:-}"
|
||||
echo "result=$result"
|
||||
test -z "${results["$result"]:-}"
|
||||
results["$result"]="1"
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user