common

package
v0.0.0-...-d7cfe2f Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Swap

func Swap(arr []int, i, j int)

Swap exchanges 2 values in an array

Types

type Test

type Test struct{}

Test represents a set of helper functions to test

func (*Test) Assert

func (t *Test) Assert(tb testing.TB, condition bool, msg string, v ...interface{})

Assert fails the test if the condition is false.

func (*Test) Equals

func (t *Test) Equals(tb testing.TB, exp, act interface{})

Equals fails the test if exp is not equal to act.

func (*Test) OK

func (t *Test) OK(tb testing.TB, err error)

OK fails the test if an err is not nil.

Jump to

Keyboard shortcuts

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