circuitpython/tests/basics/ordereddict_eq.py.exp
Mark Anthony Palomer deaf0712aa tests: Add testcase for OrderedDict equality.
There's a need for .exp file because CPython renders OrderedDict's as:

OrderedDict([('b', 2)])

while MicroPython as:

OrderedDict({'b': 2})
2016-06-12 17:37:19 +03:00

16 lines
289 B
Plaintext

OrderedDict({'a': 1, 'b': 2})
OrderedDict({'a': 1, 'b': 2})
True
OrderedDict({'a': 1, 'b': 2})
OrderedDict({'b': 2, 'a': 1})
False
OrderedDict({'a': 1, 'b': 2})
OrderedDict({'a': 1, 'b': 2})
True
OrderedDict({'b': 2})
OrderedDict({'b': 2})
True
OrderedDict({})
OrderedDict({'a': 1})
False