mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-29 02:24:35 -05:00
* prep * verify source and installed tests match * move * remove move script
12 lines
353 B
Python
12 lines
353 B
Python
from __future__ import annotations
|
|
|
|
from chia.util.collection import find_duplicates
|
|
|
|
|
|
def test_find_duplicates() -> None:
|
|
assert find_duplicates([]) == set()
|
|
assert find_duplicates([1, 1]) == {1}
|
|
assert find_duplicates([3, 2, 1]) == set()
|
|
assert find_duplicates([1, 2, 3]) == set()
|
|
assert find_duplicates([1, 2, 3, 2, 1]) == {1, 2}
|