go-hep.org/x/hep@v0.38.1/hplot/functions_test.go (about)

     1  // Copyright ©2019 The go-hep Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Copyright ©2015 The Gonum Authors. All rights reserved.
     6  // Use of this source code is governed by a BSD-style
     7  // license that can be found in the LICENSE file.
     8  
     9  package hplot_test
    10  
    11  import (
    12  	"testing"
    13  
    14  	"gonum.org/v1/plot/cmpimg"
    15  )
    16  
    17  func TestFunction(t *testing.T) {
    18  	checkPlot(cmpimg.CheckPlot)(ExampleFunction, t, "functions.png")
    19  }
    20  
    21  func TestFunctionLogY(t *testing.T) {
    22  	checkPlot(cmpimg.CheckPlot)(ExampleFunction_logY, t, "functions_logy.png")
    23  }