Commit Graph

19 Commits

Author SHA1 Message Date
Jeong YunWon
dc8057a1c2 Refactor snippets/testutil 2019-09-17 17:37:24 +09:00
ChJR
adc919f6c9 Merge branch 'master' into feature/__bool__ 2019-09-08 16:32:58 +09:00
Jeong YunWon
0327428aa5 bool.real 2019-08-22 13:57:44 +09:00
ChJR
747f777a24 Add test code from the CPython repository(Lib/test/test_bool.py). 2019-08-16 18:01:39 +09:00
lynskylate
3775e04dcd Fix pyobject truth value 2019-08-09 21:05:58 +08:00
Christian Clauss
b174453677 Travis CI: Lint Python code with flake8
These tests focus on Python syntax errors and undefined names.
2019-07-23 12:36:22 +02:00
Y. Sapir
6f66e8440d Add tests for return type of bool.__or__ etc. 2019-05-03 01:54:18 +03:00
Y. Sapir
ea347dfdec Implement bool.__or__, __and__ and __xor__ 2019-05-03 01:54:18 +03:00
Adam Kelly
5afbfafa8b Remove special case for None payload from boolval. 2019-03-06 16:04:26 +00:00
ZapAnton
da68dfef78 tests: Removed tests for the __doc__ 2019-02-08 19:41:47 +03:00
Windel Bouwman
1c07a2285d Merge pull request #268 from mrecachinas/add-bool-doc
Add bool.__doc__ (addresses #260)
2019-02-04 21:34:58 +01:00
Alexander Gude
33523d492c Change int.conjugate() to return a new int
This results in the correct behavior (that is, matching CPython) for
both int and bool types.

Also adding a bool conjugate test.
2019-02-03 13:31:09 -08:00
Alexander Gude
a95747f161 Add .conjugate() method to int type
Also add tests for for the int type, and a commented out one for the
bool type.
2019-02-03 11:18:23 -08:00
Michael Recachinas
e0b41d1386 Add bool.__doc__ (addresses #260) 2019-02-02 21:25:14 +00:00
Adam Kelly
04b73d4628 Bool is a subclass of int, so doesn't need a special kind. 2018-09-02 14:10:36 +01:00
Adam Kelly
e10dfa4f87 Compile and and or. 2018-08-26 09:36:27 +01:00
Adam Kelly
fb2c959cc4 Missing __bool__ is truthy and None is falsey. 2018-08-26 09:36:27 +01:00
Adam Kelly
d60dfd2ad8 Test __bool__ and fix it. 2018-08-24 18:48:09 +01:00
Adam Kelly
d5668c32ee Add test for bools. 2018-08-24 18:23:20 +01:00