From 8f080c0295d07b526740882469e1577a44c79060 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Tue, 16 Apr 2024 23:31:45 +1200 Subject: [PATCH] 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 --- lib/ldb/tests/python/api.py | 4 ++++ 1 file changed, 4 insertions(+) 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()) -- 2.11.4.GIT