On 19/04/2021 23:08, Nicolas Goaziou wrote:
+ ;; Space role in sorting.
+ ;; Test would fail for locales with ignored space, e.g. en_US, it works
+ ;; in C and currently rare locales having significant space (es_ES,
pl_PL)
+ (should
+ (equal "- Time stamp\n- Timer\n"
+ (org-test-with-temp-text "- Timer\n- Time stamp\n"
+ (org-sort-list t ?a)
+ (buffer-string))))))
Since this test is bound to fail for some developers, I assume it
shouldn't be included.
Locale "C" is forced for this group of tests. I have added the test to
catch an attempt to change locale since it would affect other cases. I
hope, the comment might be useful for those who play with sorting having
a regular locale instead of fallback "C".