kicad/qa/common
John Beard 346f813814 QA: Add WX_FILENAME split tests
Add some tests of the filename splitting of WX_FILENAME objects.

Interestingly, the result of GetFuillPath on an empty path is
likely wrong as it will imply an absolute path from /. But this is
probably not a used code path. Document the current behaviour as passing
the test.

This unit tests covers the code reported by Coverity 183884 and 183894
(improper use of negative). The find_last_of can return "npos" (-1), but
it's stored as a size_t. This is correct according the WX docs,
and the substr() method it is passed to can handle npos too.
2019-02-25 12:43:31 +00:00
..
geometry QA: Add Distance, Collide, Collinear tests on SEG 2019-02-03 06:57:37 +01:00
libeval Libeval: leading + is a sign, not an operator 2018-12-03 08:39:30 +01:00
view Zoom: Use std::chrono for the timestamping 2018-11-26 14:40:23 -05:00
CMakeLists.txt QA: Add WX_FILENAME split tests 2019-02-25 12:43:31 +00:00
common_mocks.cpp QA: Add TITLE_BLOCK tests 2018-11-08 08:28:20 -05:00
test_array_options.cpp Pcbnew: ignore start values in "first available" grid numbering 2019-02-08 12:15:02 +00:00
test_color4d.cpp colors: Add HSL conversion and tune colors 2019-02-11 22:08:41 -08:00
test_coroutine.cpp QA: Add coroutine unit test 2019-01-24 13:01:44 -05:00
test_format_units.cpp units: Move common units and add tests 2019-01-08 09:29:32 -08:00
test_hotkey_store.cpp Add some hotkey store tests 2018-09-28 08:27:57 -04:00
test_kicad_string.cpp Break out getTrailingInt from MODULE 2019-01-30 15:41:36 -08:00
test_lib_table.cpp Fix a compil issue in test_lib_table.cpp, with some boost versions. 2019-02-06 09:18:57 +01:00
test_module.cpp QA: Initialise WX for the libcommon tests 2018-11-26 14:40:16 -05:00
test_refdes_utils.cpp Fix broken GetReferencePrefix function 2019-01-30 15:41:36 -08:00
test_title_block.cpp QA: Add TITLE_BLOCK tests 2018-11-08 08:28:20 -05:00
test_utf8.cpp QA: Add unicode to test_utf8.cpp 2018-10-18 11:36:49 -07:00
test_wildcards_and_files_ext.cpp Wildcards: unify handling of all files wildcards 2019-01-09 08:57:42 -05:00
test_wx_filename.cpp QA: Add WX_FILENAME split tests 2019-02-25 12:43:31 +00:00