Snippets tagged unittests

  • Enumerating function

    This function takes an input sequence and returns a function that returns the elements in the sequence one by one when called consecutively. The returned function will throw if called more times than there are elements in the sequence. Useful when unit testing.

    3 people like this

    Posted: 7 years ago by Peder Sørensen