---
title: testing.assertEqualValues() function
description: testing.assertEqualValues() tests whether two values are equal.
url: https://docs.influxdata.com/flux/v0/stdlib/testing/assertequalvalues/
estimated_tokens: 688
product: Flux
version: v0
---

# testing.assertEqualValues() function

-   Flux 0.141.0+
-   View InfluxDB support

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

##### Function type signature

```js
(got: A, want: A) => stream[{v: A, _diff: string}]
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Parameters

### got

(Required) Value to test.

### want

(Required) Expected value to test against.

## Examples

### Test if two values are equal

```js
import "testing"

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

[](#view-example-input)

View example input

#### Input data

| _diff | v |
| --- | --- |
| - | 12 |
| + | 5 |

[tests](/flux/v0/tags/tests/)
