예제 #1
0
def test_merge_sets_with_remove_in_second_set_after_add_in_first():
    first = LWWElementSet()
    second = LWWElementSet()
    first.add('one', 1)
    first.add('one', 2)
    second.remove('one', 3)
    merged = first.merge(second)
    assert not merged.contains('one')
예제 #2
0
def test_merge_sets():
    first = LWWElementSet()
    second = LWWElementSet()
    first.add('one', 1)
    second.add('two', 2)
    merged = first.merge(second)
    assert merged.contains('one')
    assert merged.contains('two')