random_words integration tests: avoid test failure due to valid result (#9271)

Avoid test failure due to valid result.
pull/9295/head
Felix Fontein 2024-12-17 21:20:19 +01:00 committed by GitHub
parent 65827bdc96
commit 50b25f8c01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@
- result4[0] | length >= 17
- result4[0] | length <= 29
- result4[0] | regex_findall("[A-Z]") | length == 3
- result4[0].count("-") == 2
# If one of the random words is 't-shirt', there are more than 2 dashes...
- result4[0].count("-") == 2 or "t-shirt" in result4[0].lower()
- result5 | length == 1
- result5[0] | length == 15