Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / liblouis / src / tests / doctests / en-GB-g2.ctb_test.txt
1 Liblouis tests
2 ==============
3
4 This is an example test file in reStructuredText format
5
6 Define the table you want to test and initiate the test helper
7
8     >>> tables = ['en-GB-g2.ctb']
9     >>> t = TestHelper(tables)
10
11 Now do some tests.
12
13 Check that "the" is correctly contracted
14     >>> t.braille('the cat sat on the mat')
15     u'! cat sat on ! mat'
16
17 Make sure that "to" is contracted correctly and joined to next word.
18     >>> t.braille('to the moon')
19     u'6! moon'
20
21 Check that "to" at end of line doesn't get contracted, and that "went"
22 is expanded when cursor is positioned within the word.
23     >>> t.cursor('you went to', 4)
24     (u'y went to', 2)