Documentation

testing.assertEqualValues() function

testing.assertEqualValues() tests whether two values are equal.

Function type signature
(got: A, want: A) => stream[{v: A, _diff: string}]

For more information, see Function type signatures.

Parameters

got

(Required) Value to test.

want

(Required) Expected value to test against.

Examples

Test if two values are equal

import "testing"

testing.assertEqualValues(got: 5, want: 12)

View example input


Was this page helpful?

Thank you for your feedback!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more