mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
11 lines
300 B
Python
11 lines
300 B
Python
from testutils import assert_raises
|
|
from testutils import TestFailingBool, TestFailingIter
|
|
|
|
assert all([True])
|
|
assert not all([False])
|
|
assert all([])
|
|
assert not all([False, TestFailingBool()])
|
|
|
|
assert_raises(RuntimeError, all, TestFailingIter())
|
|
assert_raises(RuntimeError, all, [TestFailingBool()])
|