Minor bug fixes

- model::Db::lookupPaperNameFromId() bad if-else-if
- model::StrUtil::formatFraction missing arg in QString
- Added unit tests for StrUtil
This commit is contained in:
Jaye Evins
2025-05-08 11:09:11 -04:00
parent f15c21a01d
commit 18b0a1b09b
5 changed files with 98 additions and 6 deletions
+8
View File
@@ -96,4 +96,12 @@ if (Qt6Test_FOUND)
target_link_libraries (TestVariables Model Qt6::Test)
add_test (NAME Variables COMMAND TestVariables)
#=======================================
# Test StrUtil class
#=======================================
qt6_wrap_cpp (TestStrUtil_moc_sources TestStrUtil.h)
add_executable (TestStrUtil TestStrUtil.cpp ${TestStrUtil_moc_sources})
target_link_libraries (TestStrUtil Model Qt6::Test)
add_test (NAME StrUtil COMMAND TestStrUtil)
endif (Qt6Test_FOUND)