Documentation
¶
Index ¶
- func CheckError(t *testing.T, e error)
- func CompareFloats(t *testing.T, expected float64, actual float64, message string, tol float64)
- func CompareSliceFloat(t *testing.T, expected []float64, actual []float64, message string, ...)
- func CompareSliceInt(t *testing.T, expected []int, actual []int, message string)
- func Comparef64(f1, f2, tol float64) bool
- func Fatal(err error)
- func PanicIf(err error)
- func ReadResults(fn string) (results map[string]*Result, e error)
- func WriteResults(results map[string]*Result, fn string) error
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
CheckError calls Fatal if error is not nil.
func CompareFloats ¶
CompareFloats compares floats using Comparef64.
func CompareSliceFloat ¶
func CompareSliceFloat(t *testing.T, expected []float64, actual []float64, message string, tol float64)
CompareSliceFloat compares slices elementwise using Comparef64.
func CompareSliceInt ¶
CompareSliceInt compares two slices of ints elementwise.
func Comparef64 ¶
Comparef64 returns true if |f2/f1-1| < tol.
func ReadResults ¶
Read a results file.
Types ¶
Click to show internal directories.
Click to hide internal directories.