qBittorrent/test
Chocobo1 5b3b56c918
Improve natural sort algorithm
1. Use proper case folding function instead of `toLower()`.
2. Use locale aware comparison instead of comparing unicode code points.
   Now `a` comes before `A` which is the same as the result from QCollator. A nice side effect
   is now it properly compares locale specific characters (for example `C`, `Č`).
3. Improve testing. Now the test is runnable and stable on all platforms.

PR  #20208.
2024-01-08 14:47:00 +08:00
..
testdata Fix wrong behavior when reading text 2023-07-02 13:23:20 +08:00
CMakeLists.txt Introduce helper function to join values as string 2023-12-19 00:08:37 +08:00
Readme.md Add support for unit testing 2022-07-10 13:20:27 +08:00
testalgorithm.cpp Replace Q_UNUSED with [[maybe_unused]] attribute 2023-08-18 07:09:40 +03:00
testbittorrenttrackerentry.cpp Move to separate headers 2023-08-11 13:47:55 +08:00
testconceptsexplicitlyconvertibleto.cpp Introduce helper function to join values as string 2023-12-19 00:08:37 +08:00
testconceptsstringable.cpp Specify interface requirements as an C++ concept 2023-08-12 20:53:03 +08:00
testglobal.cpp Move to separate headers 2023-08-11 13:47:55 +08:00
testorderedset.cpp Introduce helper function to join values as string 2023-12-19 00:08:37 +08:00
testpath.cpp Move to separate headers 2023-08-11 13:47:55 +08:00
testutilsbytearray.cpp Move to separate headers 2023-08-11 13:47:55 +08:00
testutilscompare.cpp Improve natural sort algorithm 2024-01-08 14:47:00 +08:00
testutilsgzip.cpp Move to separate headers 2023-08-11 13:47:55 +08:00
testutilsio.cpp Move to separate headers 2023-08-11 13:47:55 +08:00
testutilsstring.cpp Introduce helper function to join values as string 2023-12-19 00:08:37 +08:00
testutilsversion.cpp Specify interface requirements as an C++ concept 2023-08-12 20:53:03 +08:00

Test suite

To run tests, add -DTESTING=ON argument when invoking cmake, then build the app as usual.
After building, run cmake --build <build> --target check where <build> is your cmake build directory.