Alternative test case:

<blockquote><verbatim>
SELECT ' '<char(31) COLLATE rtrim;


The above should give and answer of true since a zero-length string is less than
a string of length 1.  But the answer returned is false.

This problem has existing in the RTRIM collating sequence since it was first
introduced by check-in [0bf4e7fefdbbf7be] on 2008-01-20 for SQLite version 3.5.5.
Fixed 11 years later by check-in [86fa0087cd1f5c79] 11 years later.