Coverage for src / tests / test_unique.py: 100%
4 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 TestUnique:
5 def test_data_first(self):
6 # R.unique(array);
7 assert list(R.unique([1, 2, 2, 5, 1, 6, 7])) == [1, 2, 5, 6, 7]
10# def test_data_last(self):
11# # R.tap(fn)(value);
13# assert R.pipe(
14# [1, 2, 2, 5, 1, 6, 7], # only 4 iterations
15# R.unique(),
16# R.take(3),
17# ); // => [1, 2, 5]