graph/layout: handle difference between pure go and asm kernels
MODIFY
graph/layout/isomap_test.go
graph/layout/isomap_test.go
@@ -15,6 +15,10 @@ import (
"gonum.org/v1/plot/vg"
)
+// tag is modified in isomap_noasm_test.go to "_noasm" when any
+// build tag prevents use of the assembly numerical kernels.
+var tag string
+
var isomapR2Tests = []struct {
name string
g graph.Graph
@@ -160,7 +164,7 @@ func TestIsomapR2(t *testing.T) {
}
p.Add(render{o})
p.HideAxes()
- path := filepath.Join("testdata", test.name+".png")
+ path := filepath.Join("testdata", test.name+tag+".png")
err = p.Save(10*vg.Centimeter, 10*vg.Centimeter, path)
if err != nil {
t.Errorf("unexpected error: %v", err)

ADD
graph/layout/testdata/line_isomap_noasm_golden.png
graph/layout/testdata/line_isomap_noasm_golden.png
Binary files /dev/null and b/graph/layout/testdata/line_isomap_noasm_golden.png differ

ADD
graph/layout/testdata/sheet_isomap_noasm_golden.png
graph/layout/testdata/sheet_isomap_noasm_golden.png
Binary files /dev/null and b/graph/layout/testdata/sheet_isomap_noasm_golden.png differ

ADD
graph/layout/testdata/square_isomap_noasm_golden.png
graph/layout/testdata/square_isomap_noasm_golden.png
Binary files /dev/null and b/graph/layout/testdata/square_isomap_noasm_golden.png differ

ADD
graph/layout/testdata/tetrahedron_isomap_noasm_golden.png
graph/layout/testdata/tetrahedron_isomap_noasm_golden.png
Binary files /dev/null and b/graph/layout/testdata/tetrahedron_isomap_noasm_golden.png differ

ADD
graph/layout/testdata/tube_isomap_noasm_golden.png
graph/layout/testdata/tube_isomap_noasm_golden.png
Binary files /dev/null and b/graph/layout/testdata/tube_isomap_noasm_golden.png differ

ADD
graph/layout/testdata/wp_page_isomap_noasm_golden.png
graph/layout/testdata/wp_page_isomap_noasm_golden.png
Binary files /dev/null and b/graph/layout/testdata/wp_page_isomap_noasm_golden.png differ

graph/layout: handle difference between pure go and asm kernels