Commit Graph

92 Commits

Author SHA1 Message Date
wmayer
bd067fa203 Tests: fix a memory leak in StringIDRefTest::getPyObject 2023-09-18 14:58:38 +02:00
wmayer
7bef828734 Tests: add some more unit tests for Matrix class 2023-09-18 01:21:07 +02:00
wmayer
7eff934913 Base: fix incorrect method names of Matrix class about diagonal and trace 2023-09-18 01:21:07 +02:00
wmayer
d9d7bf87ae MSVC: fix several compiler warnings 2023-09-12 22:57:26 +02:00
pre-commit-ci[bot]
e92ed45df9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-12 13:02:35 -04:00
Chris Hennes
246a387625 Tests: Reformat to current clang-format standard 2023-09-03 09:51:42 -05:00
wmayer
beabfd9e06 Base: fixes #10462: mesh.unite() causes segementaion fault 2023-09-03 11:14:34 +02:00
wmayer
1816c2a1aa Tests: move Sketcher test target to appropriate CMakeLists.txt file 2023-08-28 09:12:26 -05:00
wmayer
0ae4ef2d2f Mesh: add unit tests 2023-08-27 18:55:02 +02:00
wmayer
cdd5248721 Points: add unit tests 2023-08-27 18:55:02 +02:00
wmayer
48202e940e Base: add unit tests 2023-08-27 18:55:02 +02:00
wmayer
1b7d96f55a Base: add methods to get volume and get max/min points 2023-08-27 03:11:00 +02:00
wmayer
9dd4779252 Test: add more unit tests 2023-08-26 13:17:53 +02:00
wmayer
2c2347f746 Tests: add unit tests for:
* TopoShape::getElementTypeAndIndex
* ComplexGeoData::getTypeAndIndex

and fix crashes there when passing a null pointer
2023-08-25 19:23:18 +02:00
Chris Hennes
00b45b14d5 Test: Begin QuantitySpinBox QTests 2023-08-12 10:23:43 -07:00
wmayer
95e8c5d5a5 gcc: support to build with v7.5 2023-08-10 11:22:08 +02:00
wmayer
1ab94d290e MSVC: fix build failure caused by PR #10138 2023-08-09 18:17:32 +02:00
wmayer
30ae3e6b5c fixes #10127: Usage of std::filesystem in test bumps minimum GCC version to GCC 8 2023-08-09 13:52:42 +02:00
wmayer
b8a7849dd3 Misc: modernize C++: use override 2023-08-04 17:09:53 +02:00
sliptonic
ef4ca26382 Merge pull request #9594 from wwmayer/issue_9549_new
Part: fixes #9549: Part Fuse not working inside Part container
2023-07-24 10:16:51 -05:00
Ajinkya Dahale
87eddb9f1d [Sketcher] [gtest] Add gtests for geoIdFromShapeType 2023-07-21 22:43:45 -05:00
Ajinkya Dahale
76834f6a13 [Sketcher] [gtest] Add SketchObject test
Create a document and then add a `SketchObject` to it. Does not work without
creating document.

Also `FCConfig.h` is needed for `FC_OS_WIN32`.
2023-07-21 22:43:45 -05:00
Chris Hennes
6a9efd6731 App/Toponaming: Add tests for findTagInElementName
Also apply clang-tidy to that function, and fix an error with the postfix return.
2023-07-15 22:47:08 -05:00
Chris Hennes
66f6350fd3 App/Toponaming: Basic tests and linter issues 2023-07-14 23:03:18 -05:00
Pesc0
c65f049d20 [Toponaming] create ElementMap class (#9175)
* Copypaste ElementMap
* Add MappedNameRef
* Fix missing include
* Copypaste `findTagInElementName`
* fix error introduced _somewhere_
* refactor toponaming constants
* Move `findTagInElementName` in `MappedName`
* reintroduce workaround to compile ElementMap
* Added missing functions copied from complexgeodata
* fix last compile errors, reorder and format files
* remove recursive refs to ComplexGeoData
* Add more comments
* fixed comments and added tests
* added FIXME, make functions private, misc fixes
* Move static functions from complexGeoData to PostfixStringReferences. Rename to ElementNamingUtils
* Fix broken includes due to previous change
* Revert constants from string to const char*
* added childmap tests and made hasher public
* Make functions private
* Added remaining tests
* removed bool return from `erase` functions
* fix missing appexport

Co-authored-by: John Dupuy <jdupuy98@gmail.com>
2023-06-15 09:05:24 -05:00
wmayer
98a4b1d399 Base: add helper function to quote a string and join a list of strings 2023-05-15 23:40:07 +02:00
Chris Hennes
41a924ccec App/Toponaming: Adjust StringHasher tests 2023-05-11 16:41:52 -05:00
Chris Hennes
5c119307b8 App/Toponaming: StringHasher tests, commenting, and cleanup 2023-05-11 14:34:36 -05:00
Chris Hennes
8c208d5441 App/Toponaming: Stubs of tests for StringHasher 2023-05-11 14:34:36 -05:00
Chris Hennes
987f502afe App/Toponaming: Fix Reader tests for Linux 2023-05-11 14:34:35 -05:00
Chris Hennes
e3dfd3536d App/Toponaming: Unit tests for StringIDRef 2023-05-11 14:34:35 -05:00
Chris Hennes
ed7d79b0f5 App/Toponaming: Minor refactoring and tests for StringID 2023-05-11 14:34:35 -05:00
Chris Hennes
ec575c612a App/Toponaming: Add missing include to Writer 2023-05-11 14:34:35 -05:00
Chris Hennes
b2de5ae515 App/Toponaming: Tests for Bitmask 2023-05-11 14:34:35 -05:00
Chris Hennes
7ccd3394e5 App/Toponaming: Tests for Reader and Writer 2023-05-11 14:34:35 -05:00
Chris Hennes
cc7effcfc7 App/Toponaming: Lint and compilation cleanup 2023-05-11 14:34:35 -05:00
Chris Hennes
38cac0f995 Sketcher: Add gtest unit test framework 2023-04-22 20:56:29 +02:00
berniev
38f4f3a2fc 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
9e9e0f7593 Formatting: Apply pre-commit to tests/src 2023-04-06 08:07:53 +02:00
luzpaz
07a5342b60 Toponaming: fix whitespace in App/MappedName.cpp 2023-04-01 15:21:01 +00:00
wmayer
6d6199ca3e Tests: add some more fmt tests 2023-03-31 19:37:26 +02:00
Chris Hennes
b1039c71ac App/Toponaming: Add test for EDGE2<EDGE12 2023-03-25 11:22:12 -05:00
Chris Hennes
d871779299 App/Toponaming: Add tests to MappedElement 2023-03-24 10:05:09 -05:00
Ajinkya Dahale
776e940006 [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
6354c37041 Added all tests and minor fixes 2023-03-19 02:55:24 +01:00
Chris Hennes
a920d5109f App/Toponaming: Add IndexedName tests for MappedName class 2023-03-19 01:57:54 +01:00
Pesc0
6b3d99fbbd Improved some tests 2023-03-19 01:32:29 +01:00
Pesc0
f1f1590639 Remove use of = operator in object construction 2023-03-19 00:41:13 +01:00
Pesc0
9af5a71e92 Fixed tests 2023-03-18 19:44:18 +01:00
Pesc0
d589d5205d Use AAA pattern in test suite 2023-03-17 01:43:34 +01:00