1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

Convert test file to UTF8 source code

This commit is contained in:
Max Maischein 2022-09-04 08:24:14 +02:00
parent f89e52f1ea
commit 5dbb6deac0

View file

@ -6,22 +6,25 @@ use SQLiteTest;
use Test::More;
#use if -d ".git", "Test::FailWarnings";
use DBD::SQLite;
use utf8; # our source code is UTF-8 encoded
my @texts = ("il était une bergère",
my @texts = ("il était une bergère",
"qui gardait ses moutons",
"elle fit un fromage",
"du lait de ses moutons");
"du lait de ses moutons",
"anrechenbare quellensteuer hier");
my @tests = (
# query => expected results
["bergère" => 0 ],
["bergère" => 0 ],
["berg*" => 0 ],
["foobar" ],
["moutons" => 1, 3 ],
['"qui gardait"' => 1 ],
["moutons NOT lait" => 1 ],
["il était" => 0 ],
["il était" => 0 ],
["(il OR elle) AND un*" => 0, 2 ],
["anrechenbare" => 4 ],
);
BEGIN {