text / tests /

The default branch has multiple heads

Filename Size Date modified Message
5.4 KB
3.1 KB
51.8 KB
4.9 KB
1.4 KB
1.9 KB
5.6 KB
1.2 KB
1002 B
891 B
1.1 KB


This directory contains the tests for the Text library. To run these tests, you will need the test data from:


You should extract that archive to the same directory as this README (some tests rely on this).

There are two categories of tests: functional tests (including QuickCheck properties), and benchmarks.

Functional tests



The benchmarks are located in the benchmarks subdirectory. An overview of what's in that directory:

python            Python implementations of some benchmarks
ruby              Ruby implementations of some benchmarks
src               Source files of the haskell benchmarks
benchmarks.cabal  Cabal file which compiles all benchmarks
Makefile          Has targets for common tasks

To compile the benchmarks, navigate to the benchmarks subdirectory and run cabal configure && cabal build. Then, you can run the benchmarks using:


However, since there quite a lot of benchmarks, you usually don't want to run them all. Instead, use the -l flag to get a list of benchmarks:


And run the ones you want to inspect. If you want to configure the benchmarks further, the exact parameters can be changed in src/Data/Text/Benchmarks.hs.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.