omg, had some crazy issue last night with a single unit test failing and I couldn't see why for ages. Turns out it was because I put a comment on the end of a policy line and Casbin interpreted is as part of the policy 🤦
The docs (https://casbin.org/docs/syntax-for-models/) say:
A model configuration (CONF) can contain comments. Comments start with the # symbol, and everything after the # symbol will be commented out.
Seems that's not the case for policy configs!
