From: Douglas Bagnall Date: Tue, 16 Apr 2024 11:31:45 +0000 (+1200) Subject: ldb:tests: add a test for dotted i uppercase X-Git-Tag: tdb-1.4.11~833 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f080c0295d07b526740882469e1577a44c79060;p=thirdparty%2Fsamba.git ldb:tests: add a test for dotted i uppercase This didn't fail in the tr_TR locale before recent changes for https://bugzilla.samba.org/show_bug.cgi?id=15637, because this is a different casefold codepath. But it could fail if that other path goes wrong, so we might as well have the test. Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/lib/ldb/tests/python/api.py b/lib/ldb/tests/python/api.py index 0fc31e3fe09..bdd69f07734 100755 --- a/lib/ldb/tests/python/api.py +++ b/lib/ldb/tests/python/api.py @@ -2852,6 +2852,10 @@ class DnTests(TestCase): x = ldb.Dn(self.ldb, "dc=foo14,bar=bloe") self.assertEqual(x.get_casefold(), "DC=FOO14,BAR=bloe") + def test_get_casefold_dotted_i(self): + x = ldb.Dn(self.ldb, "dc=foo14,bir=blie") + self.assertEqual(x.get_casefold(), "DC=FOO14,BIR=blie") + def test_validate(self): x = ldb.Dn(self.ldb, "dc=foo15,bar=bloe") self.assertTrue(x.validate())