Testing a function with guards

Usually you do not test calling with a string when the contract is “ints only”.

Though if you really want to, you can use assert_raise/2,3.