mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
10 lines
279 B
Python
10 lines
279 B
Python
from testutils import TestFailingBool, TestFailingIter, assert_raises
|
|
|
|
assert all([True])
|
|
assert not all([False])
|
|
assert all([])
|
|
assert not all([False, TestFailingBool()])
|
|
|
|
assert_raises(RuntimeError, all, TestFailingIter())
|
|
assert_raises(RuntimeError, all, [TestFailingBool()])
|