MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / test_items_xor

Function test_items_xor

tests/python/test_dict_methods.py:474–478  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

472
473
474def test_items_xor():
475 dishes = pm.eval("({'eggs': 2, 'sausage': 1, 'bacon': 1, 'spam': 500})")
476 items = dishes.items()
477 others = items ^ {('eggs', 2)}
478 assert others == {('spam', 500), ('bacon', 1), ('sausage', 1)}
479
480
481def test_items_intersect_one_own_smaller():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected