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.

    2 people like this

    Posted: 3 months ago by Peder Sørensen