libkiwix/test
Veloman Yunkan c782cc718a Workaround for Packages/build-deb CI failures
Packages/build-deb CI flows failed on ubuntu-bionic and ubuntu-focal
with the following mismatch in the ServerTest.suggestions unit-test:

```
[ RUN      ] ServerTest.suggestions
../test/server.cpp:715: Failure
Expected equality of these values:
  r->body
    Which is: ...
  removeEOLWhitespaceMarkers(expectedResponse)
    Which is: ...
With diff:
@@ -2,5 +2,5 @@
   {
     \"value\" : \"Ray (movie)\",
-    \"label\" : \"Ray (<b>movie</b>...\",
+    \"label\" : \"Ray (<b>movie</b>)\",
     \"kind\" : \"path\"
       , \"path\" : \"A/Ray_(movie)\"

Test context:
	url: /ROOT/suggest?content=zimfile&term=movie
```

For some reason (probably, a bug), the implementation of
`Xapian::MSet::snippet()` on those platforms decided that a single closing
parenthesis is more than is appropriate for inclusion in the snippet and
replaced it with a (longer) ellipsis.

Taking advantage of the necessity to work around that bug, the
ServerTest.suggestions's functional coverage was enhanced - the
problematic test point was replaced with a new one using a phrase
instead of a single term.
2022-02-14 18:17:48 +04:00
..
data UrlEncode the `content_id`. 2022-01-11 17:53:29 +01:00
book.cpp Deprecate methods on Book. 2022-01-12 18:07:46 +01:00
counterParsing.cpp Adapt kiwix-lib to the new libzim api. 2020-12-02 12:16:48 +01:00
httplib.h Fix warning in httplib. 2021-11-16 09:39:56 +01:00
kiwixserve.cpp Fix tests. 2020-01-20 17:00:18 +01:00
library.cpp Deprecate `Reader` creation. 2022-01-13 14:23:29 +01:00
manager.cpp Manager::reload() 2021-11-30 18:20:27 +04:00
meson.build Deprecate `Searcher` creation. 2022-01-13 14:23:29 +01:00
name_mapper.cpp Dropped Library::getBookBy*() non-const functions 2021-11-30 18:20:27 +04:00
opds_catalog.cpp OpdsCatalog::getSearchUrl() 2021-06-30 18:27:00 +02:00
pathTools.cpp Do not include posix header on Windows 2022-01-19 16:15:59 +01:00
regex.cpp Move all public *Tools.h in src. 2021-07-07 14:43:13 +02:00
server.cpp Workaround for Packages/build-deb CI failures 2022-02-14 18:17:48 +04:00
stringTools.cpp Better parsing of `M/Counter` 2020-10-28 16:03:18 +01:00
tagParsing.cpp Fix tests. 2020-01-20 17:00:18 +01:00