From 6d1bf18357b56cbec7d289c9c9434a7a8888b386 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 29 Mar 2019 09:05:14 +1100 Subject: Feature [feature-requests:#1259]. Add SCI_SETCHARACTERCATEGORYOPTIMIZATION API to optimize speed of character category features. --- test/simpleTests.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/simpleTests.py b/test/simpleTests.py index d51908baf..3af25247c 100644 --- a/test/simpleTests.py +++ b/test/simpleTests.py @@ -2282,6 +2282,11 @@ class TestWordChars(unittest.TestCase): data = self.ed.GetPunctuationChars(None) self.assertCharSetsEqual(data, expected) + def testCharacterCategoryOptimization(self): + self.assertEquals(self.ed.CharacterCategoryOptimization, 0x100) + self.ed.CharacterCategoryOptimization = 0x1000 + self.assertEquals(self.ed.CharacterCategoryOptimization, 0x1000) + class TestExplicitTabStops(unittest.TestCase): def setUp(self): -- cgit v1.2.3