prototest

package
v1.15.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertDeepEqual

func AssertDeepEqual(t testing.TB, x, y interface{}, opts ...cmp.Option)

func AssertElementsMatch added in v1.13.0

func AssertElementsMatch[V any](
	t testing.TB, listX, listY []V, opts ...cmp.Option,
)

AssertElementsMatch asserts that the specified listX(array, slice...) is equal to specified listY(array, slice...) ignoring the order of the elements. If there are duplicate elements, the number of appearances of each of them in both lists should match.

prototest.AssertElementsMatch(t, [1, 3, 2, 3], [1, 3, 3, 2])

Types

This section is empty.

Jump to

Keyboard shortcuts

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