aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/simpleTests.py
diff options
context:
space:
mode:
authornyamatongwe <unknown>2012-10-04 15:54:08 +1000
committernyamatongwe <unknown>2012-10-04 15:54:08 +1000
commit9d51d00096890f44f751e690dc317028812eb2ab (patch)
tree40c178038e21dfa1948e653ff977bda543935608 /test/simpleTests.py
parentd6c103266296459f4932d33f572994d894d35719 (diff)
downloadscintilla-mirror-9d51d00096890f44f751e690dc317028812eb2ab.tar.gz
Fix bug where non-ASCII hex escape did not match.
Diffstat (limited to 'test/simpleTests.py')
-rw-r--r--test/simpleTests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/simpleTests.py b/test/simpleTests.py
index 275409a22..9085bcf87 100644
--- a/test/simpleTests.py
+++ b/test/simpleTests.py
@@ -868,6 +868,14 @@ class TestSearch(unittest.TestCase):
self.assertEquals(0, self.ed.FindBytes(0, self.ed.Length, b"\S", flags))
self.assertEquals(2, self.ed.FindBytes(0, self.ed.Length, b"\x62", flags))
+ def testRENonASCII(self):
+ self.ed.InsertText(0, b"\xAD")
+ flags = self.ed.SCFIND_REGEXP
+ self.assertEquals(-1, self.ed.FindBytes(0, self.ed.Length, b"\\x10", flags))
+ self.assertEquals(2, self.ed.FindBytes(0, self.ed.Length, b"\\x09", flags))
+ self.assertEquals(-1, self.ed.FindBytes(0, self.ed.Length, b"\\xAB", flags))
+ self.assertEquals(0, self.ed.FindBytes(0, self.ed.Length, b"\\xAD", flags))
+
class TestProperties(unittest.TestCase):
def setUp(self):