Add some unit tests to Tools

Clean up and test 3 methods from Tools:
- humanReadableFileSize
- isHex
- isBase64
This commit is contained in:
Michal Kaptur
2018-05-14 21:26:26 +02:00
parent 8a0aae775a
commit 486b99b39d
7 changed files with 120 additions and 19 deletions

View File

@@ -190,6 +190,9 @@ add_unit_test(NAME testykchallengeresponsekey
add_unit_test(NAME testdatabase SOURCES TestDatabase.cpp
LIBS ${TEST_LIBRARIES})
add_unit_test(NAME testtools SOURCES TestTools.cpp
LIBS ${TEST_LIBRARIES})
if(WITH_GUI_TESTS)
add_subdirectory(gui)
endif(WITH_GUI_TESTS)