]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ldb:tests: add a test for dotted i uppercase
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Tue, 16 Apr 2024 11:31:45 +0000 (23:31 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 7 May 2024 23:25:35 +0000 (23:25 +0000)
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 <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/tests/python/api.py

index 0fc31e3fe09adba15280a771626f7314fcf7a766..bdd69f0773418aa4b04e9f150ef04fd01da1f692 100755 (executable)
@@ -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())