luxe / unilang

A universal programming language
MIT License
33 stars 13 forks source link

generate idempotent assert in unit test #382

Closed luxe closed 4 years ago

luxe commented 5 years ago

we might need to mark functions as idempotent. actually, we want idempotent by default and possibly the need to specify situations that are not.

given this information we can then tell the test generator to create extra CHECK calls in the unit test to check the same result n number of times to check for idempotence

We need to get the arrange/act/assert portions as separate tokens first