Determine whether the enumeration is equal in the macro conditional

I may not have fully understood the macro, I don’t understand why the conditions in this code are not valid. What should I do?

https://play.crystal-lang.org/#/r/71tj

Already found, use the Macros::Path#resolve method. Excuse me, silently reading the document…