diff --git a/extra/path-finding/path-finding-tests.factor b/extra/path-finding/path-finding-tests.factor index 0e9b5289b1..6c20104fe1 100644 --- a/extra/path-finding/path-finding-tests.factor +++ b/extra/path-finding/path-finding-tests.factor @@ -138,3 +138,13 @@ MEMO: costs ( -- costs ) ! No path from D to B -- all nodes reachable from D must have been examined [ f "CDEF" ] [ "DB" test3 ] unit-test + +[ { 1 3 } ] [ + 1 3 H{ + { 1 H{ { 2 0 } { 3 0 } } } + { 2 H{ { 3 0 } { 1 0 } { 4 0 } } } + { 3 H{ { 4 0 } } } + { 4 H{ } } + } find-path +] unit-test +