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

Function test_keys_xor

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

Source from the content-addressed store, hash-verified

308
309
310def test_keys_xor():
311 dishes = pm.eval("({'eggs': 2, 'sausage': 1, 'bacon': 1, 'spam': 500})")
312 keys = dishes.keys()
313 others = keys ^ {'sausage', 'juice'}
314 assert others == {'bacon', 'spam', 'juice', 'eggs'}
315
316
317def test_keys_len():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected