mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
mandelbrot.py: Commenting out long running tests (#5558)
* mandelbrot.py: Commenting out long running tests
* updating DIRECTORY.md
* Comment out 9 sec doctests
* Update bidirectional_breadth_first_search.py
* Comment out slow tests
* Comment out slow (9.15 sec) pytests...
* # Comment out slow (4.20s call) doctests
* Comment out slow (3.45s) doctests
* Update miller_rabin.py
* Update miller_rabin.py
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@@ -34,16 +34,19 @@ class Node:
|
||||
|
||||
class BreadthFirstSearch:
|
||||
"""
|
||||
>>> bfs = BreadthFirstSearch((0, 0), (len(grid) - 1, len(grid[0]) - 1))
|
||||
>>> (bfs.start.pos_y + delta[3][0], bfs.start.pos_x + delta[3][1])
|
||||
# Comment out slow pytests...
|
||||
# 9.15s call graphs/bidirectional_breadth_first_search.py:: \
|
||||
# graphs.bidirectional_breadth_first_search.BreadthFirstSearch
|
||||
# >>> bfs = BreadthFirstSearch((0, 0), (len(grid) - 1, len(grid[0]) - 1))
|
||||
# >>> (bfs.start.pos_y + delta[3][0], bfs.start.pos_x + delta[3][1])
|
||||
(0, 1)
|
||||
>>> [x.pos for x in bfs.get_successors(bfs.start)]
|
||||
# >>> [x.pos for x in bfs.get_successors(bfs.start)]
|
||||
[(1, 0), (0, 1)]
|
||||
>>> (bfs.start.pos_y + delta[2][0], bfs.start.pos_x + delta[2][1])
|
||||
# >>> (bfs.start.pos_y + delta[2][0], bfs.start.pos_x + delta[2][1])
|
||||
(1, 0)
|
||||
>>> bfs.retrace_path(bfs.start)
|
||||
# >>> bfs.retrace_path(bfs.start)
|
||||
[(0, 0)]
|
||||
>>> bfs.search() # doctest: +NORMALIZE_WHITESPACE
|
||||
# >>> bfs.search() # doctest: +NORMALIZE_WHITESPACE
|
||||
[(0, 0), (1, 0), (2, 0), (3, 0), (3, 1), (4, 1),
|
||||
(5, 1), (5, 2), (5, 3), (5, 4), (5, 5), (6, 5), (6, 6)]
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user