Closed intjelic closed 3 years ago
This does not happen on OTP 19.3, though.
The problem is, the example is missing the passthrough
flag when creating the mock and it seems in newer versions of Erlang the string
module is used more by the shell (hence the crash because the module doesn't have the to_graphemes/1
function anymore when mocked).
I'll update the docs.
One of the example shown on README page doesn't work.
As soon as I enter
meck:expect(string, strip, fun(String) -> meck:passthrough([String]) end).
, it will crash (output below). I didn't try the other examples to see if they work.Meck version: master Erlang version: 22 OS: Ubuntu: 20.04
The output I get.
Note that the command
meck:expect(string, strip, fun(String) -> meck:passthrough([String]) end).
seems to be erased from the terminal output as soon as I enter it.