Esempio n. 1
0
def test_group_by_category_str():
    assert helpers.group_by_category(['a', 'a', 'c', 'b']) == [0, 0, 1, 2]
Esempio n. 2
0
def test_group_by_category_ints():
    assert helpers.group_by_category([1, 1, 2, 3]) == [0, 0, 1, 2]