content/flux/v0/stdlib/testing/assertequalvalues.md
testing.assertEqualValues() tests whether two values are equal.
(got: A, want: A) => stream[{v: A, _diff: string}]
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
({{< req >}}) Value to test.
({{< req >}}) Expected value to test against.
import "testing"
testing.assertEqualValues(got: 5, want: 12)
{{< expand-wrapper >}} {{% expand "View example input" %}}
| _diff | v |
|---|---|
| - | 12 |
| + | 5 |
{{% /expand %}} {{< /expand-wrapper >}}