~ubuntu-branches/debian/jessie/liblouis/jessie

« back to all changes in this revision

Viewing changes to tests/table_test_corpuses/README

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Thibault
  • Date: 2010-01-12 23:48:47 UTC
  • mto: (1.1.4 upstream) (5.2.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20100112234847-ph9xdk3lrjdox6ks
ImportĀ upstreamĀ versionĀ 1.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Files that are placed within this directory and that start with
 
2
"test_" followed with a proper table name will be used to do corpus
 
3
based table tests. For example the file "test_en-us-g2.ctb" will be
 
4
used to test the table en-us-g2.ctb.
 
5
 
 
6
Each file is expected to contain two columns (separated by white
 
7
space). The first one contains a word and the second one contains the
 
8
expected Braille translation. So, every line forms a pair of words,
 
9
first the input and second the expected translation. Empty lines and
 
10
lines starting with a '#' are ignored. So for example the following
 
11
line
 
12
 
 
13
world         _w
 
14
 
 
15
would send the word "world" to lou_translate and would check if "_w"
 
16
is returned by it. 
 
17
 
 
18
This allows you to define a corpus of tests (input and expected
 
19
output) against your table and will give you more reassurance when
 
20
changing the tables.