Coverage for src / tests / test_random_string.py: 100%
10 statements
« prev ^ index » next coverage.py v7.13.2, created at 2026-02-02 10:52 +0100
« prev ^ index » next coverage.py v7.13.2, created at 2026-02-02 10:52 +0100
1import remedapy as R
4class TestRandomString:
5 def test_data_first(self):
6 # R.random_string(length)
7 x = R.random_string(5)
8 assert len(x) == 5
9 assert all(c.isalpha() or c.isdigit() for c in x)
11 def test_data_last(self):
12 # R.random_string()(length)
13 x = R.pipe(5, R.random_string())
14 assert len(x) == 5
15 assert all(c.isalpha() or c.isdigit() for c in x)