ma2gedev / power_assert_ex

Power Assert in Elixir. Shows evaluation results each expression.
https://github.com/ma2gedev/power_assert_ex
Other
214 stars 6 forks source link

Add a `.power_assertable?/2` check and allow fallback to `assert` #23

Open sitch opened 3 years ago

sitch commented 3 years ago

In order for a more seamless experience, having an introspection to see if there is a breaking macro or some other thing that would either fail to expand or be outside of a reasonable .power_assert/2 call, just fail this check and revert to the default "assert" call

ma2gedev commented 3 years ago

Thank you for your feedback! It looks convenient, but is there a more detailed use case or a specific problem?

sitch commented 3 years ago

Just allows for a more seamless fallback strategy so can just flat out replace assert