---
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: 180
product: Flux
version: v0
publisher: InfluxData
canonical: https://docs.influxdata.com/flux/v0/stdlib/testing/assertequalvalues/
date: '2024-04-08T16:01:02-06:00'
lastmod: '2024-04-08T16:01:02-06:00'
---

* Flux 0.141.0+

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/)
| _diff | v |
| --- | --- |
| _diff | v |
| - | 12 |
| + | 5 |
