compare

package module
v0.0.0-...-707873c Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 2 Imported by: 0

README

compare

Functions that help compare and output test results.

How to use

Compare(t *testing.T, actual interface{}, expected interface{})))

Sample

Refer the test code of this package itself.

The result of running above code is as follows:

MacBook-Air-Early-2015:test takeyuki$ go test compare_test.go -run 01 
ok      command-line-arguments  0.015s

MacBook-Air-Early-2015:test takeyuki$ go test compare_test.go -run 02
--- FAIL: Test_02 (0.00s)
    compare.go:13: got: kaeru, string
        want: 🐸, string
        called from command-line-arguments.Test_02 on /Volumes/devtmp/MyGo/compare/test/compare_test.go:14
FAIL
FAIL    command-line-arguments  0.015s
FAIL

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(t *testing.T, actual interface{}, expected interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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