test

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package test is a helper library for implementing tests for the stream package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Approx

func Approx(t *testing.T, x float64, y float64, msgAndArgs ...interface{})

Approx asserts that two floats are approximately equal to each other, within 9 decimal points of precision.

func ApproxSlice

func ApproxSlice(t *testing.T, xs []float64, ys []float64)

ApproxSlice asserts that two slices of floats are approximately equal to each other by element, within 9 decimal points of precision.

func ContainsError

func ContainsError(t *testing.T, err error, errString string)

ContainsError asserts that an error contains a string within its message.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL