# Scannable map or struct assertions

**URL:** <https://forum.elixirforum.com/t/scannable-map-or-struct-assertions/27747>\
**Category:** Discussions\
**Tags:** testing, assertions\
**Created:** [December 22, 2019, 8:43pm UTC](https://forum.elixirforum.com/t/scannable-map-or-struct-assertions/27747 "2019-12-22T20:43:25Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![marick](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/marick/32/1774_2.png) [@marick](https://forum.elixirforum.com/u/marick)\
**Post date:** [December 23, 2019, 12:11am UTC](https://forum.elixirforum.com/t/scannable-map-or-struct-assertions/27747/6 "2019-12-23T00:11:38Z")

</div>

Yes. My bias as a person raised in a language culture that reads left-to-right, and so thinks of time as flowing from left to right or top to bottom is that it’s better to put the code that produces the value-to-be-tested before the code that checks that value.

In my Clojure testing library, I illustrated that with [book examples](https://github.com/marick/midje#gallery)

I wouldn’t force that bias on anyone, but for those that share it, this code might be nice.

---

_[View the full topic](https://forum.elixirforum.com/t/scannable-map-or-struct-assertions/27747)._
