gitee.com/quant1x/num@v0.3.2/min_test.go (about)

     1  package num
     2  
     3  import (
     4  	"fmt"
     5  	"testing"
     6  )
     7  
     8  func TestMin(t *testing.T) {
     9  	f1 := []float32{1.1, 1.2, 1.3}
    10  	f2 := []float64{1.1, 1.2, 1.3}
    11  	i1 := []int8{1, 2, 3, -1}
    12  	fmt.Println(Min(f1))
    13  	fmt.Println(Min(f2))
    14  	fmt.Println(Min(i1))
    15  }