Coverage for src / tests / test_starts_with.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.13.2, created at 2026-02-02 10:52 +0100

1import remedapy as R 

2 

3 

4class TestStartsWith: 

5 def test_data_first(self): 

6 # R.starts_with(data, prefix); 

7 assert R.starts_with('hello world', 'hello') 

8 assert not R.starts_with('hello world', 'world') 

9 

10 def test_data_last(self): 

11 # R.starts_with(prefix)(data); 

12 assert R.pipe('hello world', R.starts_with('hello')) 

13 assert not R.pipe('hello world', R.starts_with('world'))