aboutsummaryrefslogtreecommitdiff
path: root/tests/basics/set_binop.py
AgeCommit message (Collapse)Author
2017-12-19tests/basics: Add more set tests to improve coverage of py/objset.c.Damien George
2017-10-03py/objset: Check that RHS of a binary op is a set/frozenset.Damien George
CPython docs explicitly state that the RHS of a set/frozenset binary op must be a set to prevent user errors. It also preserves commutativity of the ops, eg: "abc" & set() is a TypeError, and so should be set() & "abc". This change actually decreases unix (x64) code by 160 bytes; it increases stm32 by 4 bytes and esp8266 by 28 bytes (but previous patch already introduced a much large saving).
2017-02-02tests/basics/set_binop: Add tests for inplace set operations.Damien George
2015-08-21tests: Add more tests to improve coverage, mostly testing exceptions.Damien George
2014-04-07Modify set tests to print sorted sets directlyAndrew Scheller
instead of creating temporary lists and sorting those in-place
2014-04-07tests: Fix more tests which depend on order of elements in set.Paul Sokolovsky
2014-01-19Move tests in basic/tests/ up one level preparating to multiple test dirs.Paul Sokolovsky