# Unit testing non standard string literal macros

**URL:** <https://discourse.julialang.org/t/unit-testing-non-standard-string-literal-macros/6164>\
**Category:** General Usage\
**Tags:** question\
**Created:** [September 30, 2017, 9:10am UTC](https://discourse.julialang.org/t/unit-testing-non-standard-string-literal-macros/6164 "2017-09-30T09:10:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [September 30, 2017, 9:10am UTC](https://discourse.julialang.org/t/unit-testing-non-standard-string-literal-macros/6164/1 "2017-09-30T09:10:31Z")

</div>

What’s the recommended way to write unit tests for non-standard string literal macros, say `foo_str`? Best I could come up with is

```julia
str = "what goes in"
x = @eval @foo_str($str)
@test something(x) == supposed_to_be(str)

```

Is there a way to use the `foo"..."` form directly?
