From d20fcbd8455e6c1f46e8afc9f860da21fcce1dad Mon Sep 17 00:00:00 2001 From: James Shubin Date: Fri, 3 Mar 2023 14:35:06 -0500 Subject: [PATCH] lang: Fixup tests that broke I should not have changed the error string when I unified the pgraph library. --- pgraph/pgraph.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pgraph/pgraph.go b/pgraph/pgraph.go index 2b7f43a1..cf06529b 100644 --- a/pgraph/pgraph.go +++ b/pgraph/pgraph.go @@ -28,7 +28,7 @@ import ( ) // ErrNotAcyclic specifies that a particular graph was not found to be a dag. -var ErrNotAcyclic = errors.New("not a dag!") +var ErrNotAcyclic = errors.New("not a dag") // Graph is the graph structure in this library. The graph abstract data type // (ADT) is defined as follows: @@ -626,7 +626,7 @@ func (g *Graph) Reachability(a, b Vertex) ([]Vertex, error) { return nil, fmt.Errorf("empty vertex") } if _, err := g.TopologicalSort(); err != nil { - return nil, err // not a dag! + return nil, err // not a dag } vertices := g.OutgoingGraphVertices(a) // what points away from a ?