Add testcaes with spaces

This commit is contained in:
Peter J. Holzer 2021-08-05 21:43:52 +02:00 committed by Peter J. Holzer
parent c5389e56a6
commit 1d007a9e8e
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,11 @@ for s in ('asa', 'asb', 'assa', 'aßa', 'ata', 'bab', 'bäb', 'bac', ):
csr.execute("insert into t_pgcollate(t) values(%s)", (s,))
for s in ('aa', 'aa-', '-ab', '[ab]', '~ab', 'ab', ):
csr.execute("insert into t_pgcollate(t) values(%s)", (s,))
for s in (
'aa', 'aa ', 'a a', 'a a ', ' aa', ' aa ', ' a a', ' a a ',
'ab', 'ab ', 'a b', 'a b ', ' ab', ' ab ', ' a b', ' a b ',
):
csr.execute("insert into t_pgcollate(t) values(%s)", (s,))
db.commit()
csr.execute("select * from t_pgcollate order by t")
for r in csr: