notepad-plus-plus/scintilla/test
Don Ho ffdebe56ed [BUG_FIXED] (Author: François-R Boyer & Dave Brotherstone) Regex search and replace haning problem fix.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1009 f5eea248-9336-0410-98b8-ebc06183d4e3
2013-01-25 00:46:29 +00:00
..
examples [BUG_FIXED] (Author: François-R Boyer & Dave Brotherstone) Regex search and replace haning problem fix. 2013-01-25 00:46:29 +00:00
unit [BUG_FIXED] (Author: François-R Boyer & Dave Brotherstone) Regex search and replace haning problem fix. 2013-01-25 00:46:29 +00:00
MessageNumbers.py [BUG_FIXED] (Author: François-R Boyer & Dave Brotherstone) Regex search and replace haning problem fix. 2013-01-25 00:46:29 +00:00
README [BUG_FIXED] (Author: François-R Boyer & Dave Brotherstone) Regex search and replace haning problem fix. 2013-01-25 00:46:29 +00:00
XiteMenu.py [BUG_FIXED] (Author: François-R Boyer & Dave Brotherstone) Regex search and replace haning problem fix. 2013-01-25 00:46:29 +00:00
XiteWin.py [BUG_FIXED] (Author: François-R Boyer & Dave Brotherstone) Regex search and replace haning problem fix. 2013-01-25 00:46:29 +00:00
lexTests.py [BUG_FIXED] (Author: François-R Boyer & Dave Brotherstone) Regex search and replace haning problem fix. 2013-01-25 00:46:29 +00:00
performanceTests.py [BUG_FIXED] (Author: François-R Boyer & Dave Brotherstone) Regex search and replace haning problem fix. 2013-01-25 00:46:29 +00:00
simpleTests.py [BUG_FIXED] (Author: François-R Boyer & Dave Brotherstone) Regex search and replace haning problem fix. 2013-01-25 00:46:29 +00:00
xite.py [BUG_FIXED] (Author: François-R Boyer & Dave Brotherstone) Regex search and replace haning problem fix. 2013-01-25 00:46:29 +00:00

README

The test directory contains some unit and performance tests for Scintilla.

The tests can only be run on Windows using Python 3.x. Running on another platform
would require writing a file similar to XiteWin.py for that platform. Python 3.x is required 
because its default string type is Unicode and earlier Python versions use byte strings
and the interface to the platform assumes a particular string type.

A test application is in xite.py and this can be run to experiment:
pythonw xite.py

To run the basic tests:
pythonw simpleTests.py

There are some lexing tests with simple input files in several languages in the examples 
subdirectory and their expected lexed states in *.styled where the start of each style 
is marked with {styleNumber}, for example:
{15}<%@{16}language=javas{15}%>{0}

To run the lexing tests:
pythonw lexTests.py

To check for performance regressions:
pythonw performanceTests.py
While each test run will be different and the timer has only limited granularity, some results
from a 2 GHz Athlon with a DEBUG build are:
 0.187 testAddLine
. 0.203 testAddLineMiddle
. 0.171 testHuge
. 0.203 testHugeInserts
. 0.312 testHugeReplace
.