# Forall unit test generation: examples?

**URL:** <https://swi-prolog.discourse.group/t/forall-unit-test-generation-examples/2145>\
**Category:** Predicate\
**Created:** [April 11, 2020, 3:25pm UTC](https://swi-prolog.discourse.group/t/forall-unit-test-generation-examples/2145 "2020-04-11T15:25:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [April 11, 2020, 3:57pm UTC](https://swi-prolog.discourse.group/t/forall-unit-test-generation-examples/2145/2 "2020-04-11T15:57:10Z")

</div>

I think I write one of those every day.

See: [UTF-8 encode and decode](https://swi-prolog.discourse.group/t/utf-8-encode-and-decode/1894)

Also see: [Unit testing and using assertion/1](https://swi-prolog.discourse.group/t/unit-testing-and-using-assertion-1/1925)

* * *

If you [search here](https://swi-prolog.discourse.group/search?q=begin_tests) for `begin_tests` you will find many example test cases and often mine will use `forall`.

---

_[View the full topic](https://swi-prolog.discourse.group/t/forall-unit-test-generation-examples/2145)._
