Closed eimantas closed 6 years ago
Sounds good:
1) sort tokens with .custom
pushed to the back;
2) sort .custom
tokens based on alphabetical order;
I'll prepare a separate PR for this then.
Sounds good
I've added the sort to the development 0.7 branch ready for tests 🙂
How would you go about sorting two equal rule keys (e.g. @token("foobar") @token(42)
?
Well the two will never exist in the same dictionary because the key is the same....
These tests check for a generated string for a single token (each token with each value type - 7x4). What needs to be done more is check for proper generation of multiple tokens from a single dinct. This is hard since dict keys are unsorted. To do this properly we'd need to sort the keys in
description
method (which would be solely for the purpose of the tests).