jeudi 9 juin 2016

How do I fake IO input when testing with ExUnit?

I have an Elixir program I'd like to test which gets input from the user via IO.gets several times. How would I go about faking this input in a test?

Note: I would like to return a different value for each IO.gets

Aucun commentaire:

Enregistrer un commentaire