Closed cheerfulstoic closed 3 months ago
Can you please add a test as well? Thank you!
Right, of course! Done!
I temporarily put in a if(is_map(options), do: IO.inspect(options))
in validate/2
to confirm that none of the tests were receiving a map as the first argument. I thought to make all of the tests use opts_to_type
to exercise both the list and map versions of options, but I just went for a sanity test here assuming for now that if you pass in a map it will work everywhere the same as a list 🤷
:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:
If I have the following:
Everything works fine, but if I do:
It doesn't work 😢