• Moayad Mardini's avatar
    Fixed #22531 -- Added tree.Node.__repr__ and tests for the class. · 393ddc10
    Moayad Mardini yazdı
    While Node class has a useful `__str__`, its `__repr__` is not that
    useful. Added a `__repr__` that makes use of the current `__str__`.
    This is especially useful since the more popular `Q` class inherits
    `tree.Node`. Also created new tests that cover most of `Node` class
    functionality.
    393ddc10
test_tree.py 1.91 KB