From 95a67b37701223136e3fde25a00fc81f66add63d Mon Sep 17 00:00:00 2001 From: Jsor Date: Thu, 6 Feb 2014 01:58:09 -0700 Subject: [PATCH] Added test for no path condition --- search/floydw_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/search/floydw_test.go b/search/floydw_test.go index 3f279cf2..08e2c7a6 100644 --- a/search/floydw_test.go +++ b/search/floydw_test.go @@ -154,4 +154,18 @@ func TestFWConfoundingPath(t *testing.T) { t.Error("Wrong path found for all paths %v", path) } } + + path, _, err = sPath(concrete.GonumNode(4), concrete.GonumNode(5)) + if err != nil { + t.Log("Success!", err) + } else { + t.Error("Path was found by FW single path where one shouldn't be %v", path) + } + + paths, _, err = aPaths(concrete.GonumNode(4), concrete.GonumNode(5)) + if err != nil { + t.Log("Success!", err) + } else { + t.Error("Path was found by FW multi-path where one shouldn't be %v", paths) + } }