drh | 1db0a72 | 2015-12-17 14:18:21 +0000 | [diff] [blame] | 1 | # 2015-12-17 |
| 2 | # |
| 3 | # The author disclaims copyright to this source code. In place of |
| 4 | # a legal notice, here is a blessing: |
| 5 | # |
| 6 | # May you do good and not evil. |
| 7 | # May you find forgiveness for yourself and forgive others. |
| 8 | # May you share freely, never taking more than you give. |
| 9 | # |
| 10 | #*********************************************************************** |
| 11 | # |
| 12 | |
| 13 | set testdir [file dirname $argv0] |
| 14 | source $testdir/tester.tcl |
| 15 | set testprefix spellfix3 |
| 16 | |
| 17 | ifcapable !vtab { finish_test ; return } |
| 18 | |
| 19 | load_static_extension db spellfix |
| 20 | |
| 21 | do_execsql_test 100 { |
| 22 | SELECT spellfix1_scriptcode('And God said, “Let there be light”'); |
| 23 | } {215} |
| 24 | do_execsql_test 110 { |
| 25 | SELECT spellfix1_scriptcode('Бог сказал: "Да будет свет"'); |
| 26 | } {220} |
| 27 | do_execsql_test 120 { |
| 28 | SELECT spellfix1_scriptcode('και ειπεν ο θεος γενηθητω φως και εγενετο φως'); |
| 29 | } {200} |
| 30 | do_execsql_test 130 { |
| 31 | SELECT spellfix1_scriptcode('וַיֹּ֥אמֶר אֱלֹהִ֖ים יְהִ֣י א֑וֹר וַֽיְהִי־אֽוֹר׃'); |
| 32 | } {125} |
| 33 | do_execsql_test 140 { |
| 34 | SELECT spellfix1_scriptcode('فِي ذَلِكَ الوَقتِ، قالَ اللهُ: لِيَكُنْ نُورٌ. فَصَارَ نُورٌ.'); |
| 35 | } {160} |
| 36 | do_execsql_test 200 { |
| 37 | SELECT spellfix1_scriptcode('+3.14159'); |
drh | 811f17b | 2016-03-11 14:30:18 +0000 | [diff] [blame] | 38 | } {215} |
drh | 1db0a72 | 2015-12-17 14:18:21 +0000 | [diff] [blame] | 39 | do_execsql_test 210 { |
| 40 | SELECT spellfix1_scriptcode('And God said: "Да будет свет"'); |
| 41 | } {998} |
drh | 811f17b | 2016-03-11 14:30:18 +0000 | [diff] [blame] | 42 | do_execsql_test 220 { |
| 43 | SELECT spellfix1_scriptcode('+3.14159 light'); |
| 44 | } {215} |
| 45 | do_execsql_test 230 { |
| 46 | SELECT spellfix1_scriptcode('+3.14159 свет'); |
| 47 | } {220} |
| 48 | do_execsql_test 240 { |
| 49 | SELECT spellfix1_scriptcode('וַיֹּ֥אמֶר +3.14159'); |
| 50 | } {125} |
drh | 1db0a72 | 2015-12-17 14:18:21 +0000 | [diff] [blame] | 51 | |
| 52 | finish_test |