test

package
v0.0.0-...-c86a493 Latest Latest
Warning

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

Go to latest
Published: May 15, 2013 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package test contains test tools extending the basic go test toolset. Based on work by Stefan Nilsson of KTH

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayEq

func ArrayEq(a, b []int) bool

Checks if a and b have the same elements in the same order.

func Check

func Check(t *testing.T, res, exp interface{})

func Diff

func Diff(res, exp interface{}) (message string, diff bool)

Checks if res and exp are different.

func DiffPerm

func DiffPerm(res, exp string) (message string, diff bool)

Checks if res and exp are different permutations of characters.

func UnExpErr

func UnExpErr(t *testing.T, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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