def test_merge_sets_3():
joined = merge_sets(
[
[8, 100],
[120, 8],
[0],
[1, 2],
[9, 8],
[2, 3],
[8, 7],
[3, 4],
[7, 6],
[4, 5],
[6, 5],
[10, 1],
[2, 7],
[15, 14, 8, 12],
]
)
joined = sorted(sorted(v) for v in joined)
assert joined == [[0], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 100, 120]]