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

Function test_keys_or

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

Source from the content-addressed store, hash-verified

299
300
301def test_keys_or():
302 dishes = pm.eval("({'eggs': 2, 'sausage': 1, 'bacon': 1, 'spam': 500})")
303 keys = dishes.keys()
304 others = keys | ['juice', 'juice', 'juice']
305 assert others == {'bacon', 'spam', 'juice', 'sausage', 'eggs'}
306 others = ['apple'] | keys
307 assert others == {'bacon', 'spam', 'sausage', 'apple', 'eggs'}
308
309
310def test_keys_xor():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected