Skip to content

Commit 77cdce7

Browse files
committed
test(random): enhance RandomStrSequence tests
- Add test for default character set - Add test for custom character sets - Add test for string uniqueness - Add test for iterator protocol - Add test for doctest examples - Improve test coverage and maintainability
1 parent cc46b5d commit 77cdce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test/test_random.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_random_str_sequence_default() -> None:
2626

2727
assert isinstance(result, str)
2828
assert len(result) == 8
29-
assert all(c in "abcdefghijklmnopqrstuvwxyz0123456789_" for c in result)
29+
assert all(c in rng.characters for c in result)
3030

3131

3232
def test_random_str_sequence_custom_chars() -> None:

0 commit comments

Comments
 (0)