I am trying to write a test for opening a file. file open returns a value of the form:
{ok, IoDevice} | {error, Reason}
I have tried the foll