# Show value if test fails

**URL:** https://discourse.julialang.org/t/show-value-if-test-fails/6940
**Category:** General Usage
**Created:** [November 7, 2017, 7:39pm UTC](https://discourse.julialang.org/t/show-value-if-test-fails/6940 "2017-11-07T19:39:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Wikunia](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wikunia/32/2180_2.png) [@Wikunia](https://discourse.julialang.org/u/Wikunia)
#### Post date: [November 7, 2017, 7:39pm UTC](https://discourse.julialang.org/t/show-value-if-test-fails/6940/1 "2017-11-07T19:39:02Z")

</div>

If I run

```julia
a = 15
@test a == 12

```

I get failure and `Evaluated: 15 == 12`

but if I run

```julia
@test isapprox(a, 14.3)

```

I don’t get the evaluated version of `a` which would be nice.

A fix for that is

```julia
@test a ≈ 14.3

```

But doesn’t work for

```julia
@test a ≈ 14.3 atol=1

```

---

<div class="post-metadata">

### Author: ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)
#### Post date: [November 7, 2017, 10:27pm UTC](https://discourse.julialang.org/t/show-value-if-test-fails/6940/2 "2017-11-07T22:27:17Z")

</div>

Looks like this feature is coming in the next version: [https://github.com/JuliaLang/julia/pull/22296](https://github.com/JuliaLang/julia/pull/22296)
