Jehan
908f9b8ba7
src, test: rename s/uchardet_get_candidates/uchardet_get_n_candidates/.
...
This was badly named as this function does not return candidates, but
the number of candidates (to be actually used in other API).
2022-12-14 00:24:53 +01:00
Jehan
a3ff09bece
test: improve test error output even more.
...
Adding the found confidence, but also the confidence matched by the
expected (lang, charset) couple, and its candidate order, if it even
matched.
2022-12-14 00:24:53 +01:00
Jehan
c9446e540d
test: add stderr logging when a test fails.
...
It allows to get some more info in Testing/Temporary/LastTest.log to
debug detection issues.
2022-12-14 00:24:53 +01:00
Jehan
bffb7819d2
test: fix test binary build for Windows.
...
realpath() doesn't exist on Windows. Replace it with _fullpath() which
does the same thing, as far as I can see (at least for creating an
absolute path, it doesn't seem to canonicalize the path, or the docs
doesn't say it, yet since we are controlling the arguments from our
CMake script, it's not a big problem anyway).
This fixed the CI build for Windows failing with:
> undefined reference to `realpath'
2022-12-14 00:24:53 +01:00
Jehan
1b5e68be00
test: update unit test to check detected languages.
...
Excepting ASCII, UTF-16 and UTF-32 for which we don't detect languages
yet.
2022-12-14 00:23:13 +01:00
Jehan
e7bf25ca08
test: fix test script to use the new API and get rid of build warning.
2022-12-14 00:23:13 +01:00
Martin T. H. Sandsmark
c11c362b89
Add tests for norwegian
2022-11-30 19:09:21 +01:00
Lucinda May Phipps
ef19faa8c5
Update uchardet-tests.c
2022-11-29 13:57:31 +00:00
Jehan
6cf13f108b
test: output the test file path which we failed to open.
...
Also properly free the string in such case.
2017-05-14 20:29:30 +02:00
Jehan
eb727d3aca
Add automatic testing against every test file.
2015-11-18 18:18:27 +01:00