[tracker] FTS tests: small fix in test data
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] FTS tests: small fix in test data
- Date: Wed, 26 May 2010 11:07:53 +0000 (UTC)
commit 6749dcd34f2aab1db18f9ebddb97e8add1492e55
Author: Aleksander Morgado <aleksander lanedo com>
Date: Wed May 26 13:06:47 2010 +0200
FTS tests: small fix in test data
tests/libtracker-fts/tracker-parser-test.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/tests/libtracker-fts/tracker-parser-test.c b/tests/libtracker-fts/tracker-parser-test.c
index 8975f41..1f3da94 100644
--- a/tests/libtracker-fts/tracker-parser-test.c
+++ b/tests/libtracker-fts/tracker-parser-test.c
@@ -249,20 +249,20 @@ static const TestDataExpectedWord test_data_normalization[] = {
/* Stemming-related tests */
static const TestDataExpectedWord test_data_stemming[] = {
- { "ecole", "ecol", TRUE },
- { "ecole", "ecole", FALSE },
- { NULL, NULL, FALSE }
+ { "ecole", "ecol", TRUE, TRUE },
+ { "ecole", "ecole", FALSE, TRUE },
+ { NULL, NULL, FALSE, FALSE }
};
/* Casefolding-related tests */
static const TestDataExpectedWord test_data_casefolding[] = {
- { "gross", "gross", FALSE },
- { "GROSS", "gross", FALSE },
- { "GrOsS", "gross", FALSE },
+ { "gross", "gross", FALSE, TRUE },
+ { "GROSS", "gross", FALSE, TRUE },
+ { "GrOsS", "gross", FALSE, TRUE },
#ifdef FULL_UNICODE_TESTS /* glib/pango doesn't do full-word casefolding */
- { "groÃ?", "gross", FALSE },
+ { "groÃ?", "gross", FALSE, TRUE },
#endif
- { NULL, NULL, FALSE }
+ { NULL, NULL, FALSE, FALSE }
};
/* Number of expected words tests */
@@ -271,14 +271,14 @@ static const TestDataExpectedNWords test_data_nwords[] = {
{ "The quick (\"brown\") fox canâ??t jump 32.3 feet, right?", TRUE, 8 },
{ "The quick (\"brown\") fox canâ??t jump 32.3 feet, right?", FALSE, 9 },
#endif
- { "ã??ã?¢ã?»ã?µã??ã?¨ã?³ã?¹", TRUE, 2 }, /* katakana */
+ { "ã??ã?¢ã?»ã?µã??ã?¨ã?³ã?¹", TRUE, 2 }, /* katakana */
#ifdef FULL_UNICODE_TESTS /* glib/pango doesn't work properly with chinese */
{ "æ?¬å·?æ??主æµ?ç??é£?å?³", TRUE, 8 }, /* chinese */
#endif
{ "Ð?меÑ?иканÑ?кие Ñ?Ñ?да наÑ?одÑ?Ñ?Ñ?Ñ? в междÑ?наÑ?однÑ?Ñ? водаÑ?.", TRUE, 6 }, /* russian */
- { "Bần ch� là m�t anh nghèo xác", TRUE, 7 }, /* vietnamese */
+ { "Bần ch� là m�t anh nghèo xác", TRUE, 7 }, /* vietnamese */
#ifdef FULL_UNICODE_TESTS /* glib/pango doesn't work properly with chinese */
- { "ã??ã?¢ã?»ã?µã??ã?¨ã?³ã?¹ æ?¬å·?æ??主æµ?ç??é£?å?³ katakana, chinese, english", TRUE, 13 }, /* mixed */
+ { "ã??ã?¢ã?»ã?µã??ã?¨ã?³ã?¹ æ?¬å·?æ??主æµ?ç??é£?å?³ katakana, chinese, english", TRUE, 13 }, /* mixed */
#endif
{ NULL, FALSE, 0 }
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]