Skip to content

Commit

Permalink
test new group goes the right way
Browse files Browse the repository at this point in the history
The order of items in links shouldn't really matter, but it currently
does at least for the internal tuple way of storing everything. This is
probably fine. (?)
  • Loading branch information
ajschumacher committed Jun 6, 2015
1 parent f0c8a53 commit 585b8c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mergic/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ def test_joins_to_same_thing(self):
group_of = {1: (1,), 2: (2,)}
mergic._link_items(group_of, [(1, 2)])
self.assertIs(group_of[1], group_of[2])

def test_joins_to_correct_tuple(self):
group_of = {1: (1,), 2: (2,)}
mergic._link_items(group_of, [(1, 2)])
self.assertEqual(set(group_of[1]), set((1, 2)))

0 comments on commit 585b8c7

Please sign in to comment.