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!


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.