Kenichi Ishigaki
9c6cbfcc51
Set UTF8CACHE to avoid slowdown with -DDEBUGGING
2022-03-12 10:43:05 +09:00
Kenichi Ishigaki
f14744d31a
Use imported constants
2021-06-06 01:53:52 +09:00
Kenichi Ishigaki
1dc2e1dbe2
Fix to use string_mode
2021-05-30 21:19:18 +09:00
Kenichi Ishigaki
31483a245f
Merge branch 'string_mode'
2021-05-30 21:18:42 +09:00
Felipe Gasper
9dc75eaead
Replace “string_unicode” boolean with “string_mode” enum.
...
Issue #78 and issue #68 : This introduces additional, more robust
schemas for translating strings between SQLite and Perl.
2021-05-29 19:19:58 -04:00
dami
6669dbc332
cleanup tokenizer code and test
2021-05-13 12:27:57 +02:00
dami
f68f79415f
test to show that perl tokenizer with unicode is extremely slow
2021-05-11 09:01:59 +02:00
dami
8d5a28cf5c
additional test for snippet()
2021-05-09 22:22:39 +02:00
dami
b5c3f9d528
fixed #75 -- lastCharOffset must copy the OLD value of piEndOffset, BEFORE it is recomputed
...
also fixed 43_fts3.t so that it uses \p{Word} instead of \w, because en-us locale did not handle accented characters
2021-05-09 22:06:28 +02:00
dami
be9f64b2c9
tests for functions snippet() and offets()
2021-05-09 19:25:27 +02:00
Kenichi Ishigaki
fa6a2c7040
fixed no if conditions
2019-01-26 07:10:10 +09:00
Kenichi Ishigaki
bfe71db88f
locale warning is only available for perl 5.22+
2019-01-20 08:27:04 +09:00
Kenichi Ishigaki
4dd0bf8167
no warnings 'locale'
2019-01-18 05:13:34 +09:00
Kenichi Ishigaki
627666e888
not to use Test::FailWarnings except for developers environment
2019-01-07 03:48:10 +09:00
Kenichi Ishigaki
f56689d929
use more test utility functions
2019-01-07 03:41:09 +09:00
Kenichi Ishigaki
fdde5b98ef
use Test::FailWarnings as Test::NoWarnings does not play well with done_testing
2019-01-06 09:17:14 +09:00
Kenichi Ishigaki
c84a0a9781
use done_testing and remove plan tests
2019-01-06 09:03:41 +09:00
Kenichi Ishigaki
fc55eeb0d7
fixed mixed EOLs and removed redundant blank lines
2019-01-06 05:55:34 +09:00
Kenichi Ishigaki
11c2f4e70f
use warnings
2019-01-02 21:17:30 +09:00
Kenichi Ishigaki
12ab284322
removed shebang from tests
2019-01-02 21:10:51 +09:00
Kenichi Ishigaki
72fd3e009e
Remove NoWarnings test from t/43_fts.t because Perl may spit a locale warning under some environment
2018-01-20 16:07:33 +09:00
Peter Rabbitson
c4eab85ff7
Workaround for upcoming lack of dot in @INC ( RT#120444, sigh )
...
Zero functional changes, simply executed the following:
find . -name '*.t' -exec perl -0777 -p -i -e 's|^use t::lib::SQLiteTest|use lib "t/lib";\nuse SQLiteTest|m' {} +
Also had to do a manual (but identical) fix in t/01_compile.t
2017-05-05 00:48:33 +02:00
Kenichi Ishigaki
434aea6479
rename t/lib/Test.pm to t/lib/SQLiteTest.pm
2017-03-04 15:04:39 +09:00
Kenichi Ishigaki
e17149317a
re-enable perl tokenizer by calling sqlite3_db_config if SQLite >= 3.12
2016-11-26 10:07:24 +09:00
Kenichi Ishigaki
abed684c43
two-arg fts3_tokenizer() is disabled by default for security concerns as of SQLite 3.11.0, unless DBD::SQLite is compiled with -DSQLITE_ENABLE_FTS3_TOKENIZER
2016-02-16 11:55:27 +09:00
Kenichi Ishigaki
eb10c7ce6f
tweaked code and tests for older SQLite libraries (re: RT 101573)
2015-02-10 17:07:32 +09:00
Laurent Dami
6835c13898
updated doc and tests for FTS4 (but no change in code was required)
2012-12-30 16:29:03 +00:00
Kenichi Ishigaki
764b446776
skip fts3/metadata tests when those are disabled to resolve #65267
2011-01-31 03:00:40 +00:00
Kenichi Ishigaki
734ea7ab4b
applied a patch from paul@city-fan.org to resolve # 61361
2010-09-16 07:08:36 +00:00
Laurent Dami
fb64180af4
actually, this test does not need Search::Tokenizer, so no need to skip
2010-07-19 21:09:34 +00:00
Kenichi Ishigaki
1422eb5427
skip unless Search::Tokenizer is not installed
2010-07-14 18:46:18 +00:00
Laurent Dami
d43cf63ad0
added support for FTS3 fulltext searches : perl tokenizers, documentation and tests
2010-07-13 06:28:21 +00:00