man page: Use I (instead of B) font for all file names and URLs
[conkeror.git] / tests / simple / casual-spelling.js
blob8487424e7a1fd7fa31f7a2805da94c9194528743
2 require("walnut.js");
3 require("casual-spelling.js");
5 walnut_run({
6     test_translate_1: function () {
7         assert_equals(casual_spelling_translate("\u00e1"), "a");
8     },
9     test_text_match_1: function () {
10         assert_objects_equal(casual_spelling_hints_text_match("", ""),
11                              [0,0]);
12     },
13     test_text_match_2: function () {
14         assert_objects_equal(casual_spelling_hints_text_match("a", "a"),
15                              [0,1]);
16     },
17     test_text_match_3: function () {
18         assert_objects_equal(casual_spelling_hints_text_match("a", "b"),
19                              false);
20     },
21     test_text_match_4: function () {
22         assert_objects_equal(casual_spelling_hints_text_match("\u00e1", "a"),
23                              [0,1]);
24     },
25     test_text_match_5: function () {
26         assert_objects_equal(casual_spelling_hints_text_match("aa", "aa"),
27                              [0,2]);
28     }
29 });