graph/layout: reduce code duplication in layout tests

This commit is contained in:
Dan Kortschak
2021-03-09 11:00:40 +10:30
parent 50036db730
commit c631911702
8 changed files with 11 additions and 152 deletions

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package layout
package layout_test
import (
"path/filepath"
@@ -13,6 +13,8 @@ import (
"gonum.org/v1/gonum/spatial/r2"
"gonum.org/v1/plot"
"gonum.org/v1/plot/vg"
. "gonum.org/v1/gonum/graph/layout"
)
var (