Commit Graph

70 Commits

Author SHA1 Message Date
Chris Hennes
43abb34698 App/Toponaming: Adjust StringHasher tests 2023-05-11 16:41:52 -05:00
Chris Hennes
ec98b5e498 App/Toponaming: StringHasher tests, commenting, and cleanup 2023-05-11 14:34:36 -05:00
Chris Hennes
2ef98bfdc0 App/Toponaming: Stubs of tests for StringHasher 2023-05-11 14:34:36 -05:00
Chris Hennes
e461f1bc27 App/Toponaming: Fix Reader tests for Linux 2023-05-11 14:34:35 -05:00
Chris Hennes
0d8cce1be5 App/Toponaming: Unit tests for StringIDRef 2023-05-11 14:34:35 -05:00
Chris Hennes
c9f73bda9e App/Toponaming: Minor refactoring and tests for StringID 2023-05-11 14:34:35 -05:00
Chris Hennes
2e5f43e69b App/Toponaming: Add missing include to Writer 2023-05-11 14:34:35 -05:00
Chris Hennes
d6b002152d App/Toponaming: Tests for Bitmask 2023-05-11 14:34:35 -05:00
Chris Hennes
bb7681810a App/Toponaming: Tests for Reader and Writer 2023-05-11 14:34:35 -05:00
Chris Hennes
0a2eacade2 App/Toponaming: Lint and compilation cleanup 2023-05-11 14:34:35 -05:00
Chris Hennes
22d8c8f0dd Sketcher: Add gtest unit test framework 2023-04-22 20:56:29 +02:00
berniev
de1acd926e simplifying a function
Dramatic simplification of legacy code by separating code and data and applying some later C++.
Function removed from Application.cpp as it was in a anonymous namespace and could not easily be subjected to unit testing.
Added ProgramOptionsUtilities.h
2023-04-07 12:37:05 +02:00
Chris Hennes
e04bf47d8d Formatting: Apply pre-commit to tests/src 2023-04-06 08:07:53 +02:00
luzpaz
0f42e9ed09 Toponaming: fix whitespace in App/MappedName.cpp 2023-04-01 15:21:01 +00:00
wmayer
498bdd5d6e Tests: add some more fmt tests 2023-03-31 19:37:26 +02:00
Chris Hennes
71fb0a584a App/Toponaming: Add test for EDGE2<EDGE12 2023-03-25 11:22:12 -05:00
Chris Hennes
8b74cd3255 App/Toponaming: Add tests to MappedElement 2023-03-24 10:05:09 -05:00
Ajinkya Dahale
43858ce9ba [Core] Create ElementMap and tests
Test is a dummy for now. `ElementMap.h` only contains const values.
2023-03-22 21:53:23 +05:30
Pesc0
dce458d1e8 Added all tests and minor fixes 2023-03-19 02:55:24 +01:00
Chris Hennes
88a06ce6d5 App/Toponaming: Add IndexedName tests for MappedName class 2023-03-19 01:57:54 +01:00
Pesc0
2721a83a08 Improved some tests 2023-03-19 01:32:29 +01:00
Pesc0
86333b210d Remove use of = operator in object construction 2023-03-19 00:41:13 +01:00
Pesc0
5e5719a435 Fixed tests 2023-03-18 19:44:18 +01:00
Pesc0
6a6cda538f Use AAA pattern in test suite 2023-03-17 01:43:34 +01:00
Pesc0
1562179bdc MappedName unit tests almost complete 2023-03-17 01:43:34 +01:00
Pesc0
62246b951a Added initial tests to MappedName 2023-03-17 01:43:34 +01:00
Pesc0
5600c564be Added MappedName class 2023-03-17 01:42:53 +01:00
berniev
138688d25e Finish #8879 and remove the unwanted files 2023-03-16 03:48:59 +01:00
Chris Hennes
44864bf525 Merge pull request #8776 from chennes/toponamingIndexedName
App: Toponaming indexed name
2023-03-14 19:21:19 -05:00
Chris Hennes
cc9387aa3f App: Clean up IndexedName and add tests
Fixes the matching algorithm when provided a vector of existing names:
The original algorithm was equivalent to a 'startswith' algorithm, when it should
have been testing for exact and complete string equality. This also does some
refactoring to rename and clarify variables and functions, simplifies some
functions by using standard library calls when possible, and addresses various
linter complaints. It also applies our current clang-format to the files.

Co-authored-by: Ajinkya Dahale <AjinkyaDahale@users.noreply.github.com>
2023-03-14 13:08:23 -05:00
berniev
de373436cd Remove original proof of concept test files as some fail, and that won't work too well with future possible CI 2023-03-14 16:00:13 +01:00
wmayer
645812b8f7 Tests: suppress warnings C4251 in test module 2023-03-12 17:58:11 +01:00
wmayer
da98cfc4d1 Test: fix license unit test 2023-03-11 03:19:59 +01:00
luzpaz
6802bed99d Fix various typos and whitespace 2023-03-10 14:40:46 +01:00
wmayer
4ed6150231 Tests: add zipios++ unit tests 2023-03-09 23:33:52 +01:00
berniev
0a5e59adae an example of using constexpr array for data
simplifies code and removes the need for a class.
2023-03-07 23:22:44 +01:00
berniev
12fabc104c Multiple files under test in one test file
Put Unit into its own test file and rename Units.cpp to Quantity.cpp
2023-03-02 22:12:21 +01:00
berniev
b062b22b09 test fmt library is basically working 2023-03-02 11:08:23 +01:00
wmayer
04d494cb75 Tests: add test of a matrix without rotation part to raise an exception 2023-02-28 22:28:21 +01:00
wmayer
9b3b4e835e Tests: add test to parse string to get quantity 2023-02-28 15:17:06 +01:00
wmayer
b0b52cda32 Base: fix pow() of Quantity 2023-02-27 22:13:08 +01:00
wmayer
06285d2ae9 Tests: add more unit tests 2023-02-27 20:07:01 +01:00
wmayer
c747dbde52 Tests: fix Lint issue cppcoreguidelines-init-variables 2023-02-26 13:30:44 +01:00
wmayer
e2c9b32ebe Test: add unit tests for expressions with operator 2023-02-26 09:00:27 +01:00
wmayer
b55a5682ad Tests: add unit tests for expression tokenizer 2023-02-26 09:00:27 +01:00
wmayer
aa04870ea9 Tests: exclude some lint warnings 2023-02-26 08:58:51 +01:00
wmayer
3a589cba11 Tests: add unit tests for Matrix4D and Rotation 2023-02-26 08:58:51 +01:00
wmayer
37fcd2da26 Tests: fix linking error on Windows 2023-02-25 15:27:30 +01:00
wmayer
22587e360c Tests: add tests for quantities 2023-02-25 00:33:44 +01:00
wmayer
519d26e13c CMake: fix linking error in test function when linking Python statically 2023-02-19 20:51:44 +01:00