Commit Graph

52 Commits

Author SHA1 Message Date
Ladislav Michl
159fe5c21f Base: Use std::chrono for time handling
Replace platform specific implementations with standard C++ std::chrono.
As time_t is now 64-bit on all supported systems, use it to set the clock.
2024-03-05 12:22:40 +01:00
Florian Foinant-Willig
74c52c9063 PD: handle null pointer in Feature::getBaseShape (#12385) 2024-02-13 17:41:25 -03:00
PaddleStroke
7af02003d8 vector3d getAngleOriented test. 2024-02-13 08:26:49 +01:00
Adrián Insaurralde Avalos
9c3ab15ecb Base: escape quotes in Quantity::getSafeUserString
fix #12204 and fix #12206
2024-02-12 12:09:30 -06:00
wmayer
5368465ec1 Tests: add unit tests for IsNormal() and IsParallel() 2024-02-12 11:58:45 -06:00
Adrian Insaurralde Avalos
808e5d9d74 Add Base::Tools::escapeQuotesFromString with corresponding test
To be used to avoid sending unescaped quotes to python console
2024-02-04 16:44:25 -06:00
Ladislav Michl
7a955c5600 Tests: Avoid use of fmtlib when not needed 2024-01-15 17:38:56 +01:00
wmayer
8b1695b162 Tests: fix failure in InventorBuilder_Tests_run 2023-11-13 13:21:19 +01:00
wmayer
a9d80740a8 Test: add unit tests for Matrix4D::decompose() 2023-10-19 19:25:25 +02:00
wmayer
aa5bea4e2e Base: add method XMLReader::isStartOfDocument() 2023-10-12 19:46:21 +02:00
wmayer
dcfd888c8f Tests: extend some reader tests after fixing givenDataAsXMLStream 2023-10-12 12:07:47 +02:00
wmayer
be2aa179b1 Tests: fix undefined behaviour in givenDataAsXMLStream 2023-10-11 12:05:37 +02:00
Chris Hennes
9b11c36708 Base/Toponaming: Refactor to extract filters to new file 2023-10-10 11:28:30 -05:00
Chris Hennes
5975e3d51e App/Toponaming: Add base64 encoding to XML 2023-10-10 10:19:43 -05:00
wmayer
1312b9d2ac Tests: add unit tests for XMLReader::readNextElement() 2023-10-09 15:06:45 +02:00
Jolbas
40228d9ef2 Matrix.decompose() fix
Fixes some errors when matrix has zero scale in one or two directions
2023-09-28 15:25:29 -05:00
Jolbas
2d8c280528 Create rotation from any matrix
To help find a matrix components a decompose method is added to Matrix class
2023-09-28 15:25:29 -05:00
wmayer
d567b859d3 Tests: add some more unit tests for Matrix class 2023-09-18 01:21:07 +02:00
wmayer
4f6ab508d7 Base: fix incorrect method names of Matrix class about diagonal and trace 2023-09-18 01:21:07 +02:00
wmayer
89bb28239e MSVC: fix several compiler warnings 2023-09-12 22:57:26 +02:00
pre-commit-ci[bot]
222a2520b1 [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
1a960286a4 Tests: Reformat to current clang-format standard 2023-09-03 09:51:42 -05:00
wmayer
9fc5c2d8e4 Base: fixes #10462: mesh.unite() causes segementaion fault 2023-09-03 11:14:34 +02:00
wmayer
d6a0732032 Base: add unit tests 2023-08-27 18:55:02 +02:00
wmayer
90bafb3a06 Base: add methods to get volume and get max/min points 2023-08-27 03:11:00 +02:00
wmayer
d623e37e5e Test: add more unit tests 2023-08-26 13:17:53 +02:00
Chris Hennes
ee7779455a Test: Begin QuantitySpinBox QTests 2023-08-12 10:23:43 -07:00
wmayer
1dd8680b11 gcc: support to build with v7.5 2023-08-10 11:22:08 +02:00
wmayer
57c213b464 MSVC: fix build failure caused by PR #10138 2023-08-09 18:17:32 +02:00
wmayer
3b6a01095f fixes #10127: Usage of std::filesystem in test bumps minimum GCC version to GCC 8 2023-08-09 13:52:42 +02:00
sliptonic
20768ba7f9 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
wmayer
41e6758bc0 Base: add helper function to quote a string and join a list of strings 2023-05-15 23:40:07 +02:00
Chris Hennes
e461f1bc27 App/Toponaming: Fix Reader tests for Linux 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
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
e04bf47d8d Formatting: Apply pre-commit to tests/src 2023-04-06 08:07:53 +02: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
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
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
berniev
9a05a04dad Improve unit testing directory structure
Separate Qt tests and gtest tests
Add a basic shadow of the project structure
Add a few simple tests to demonstrate usage
2023-01-30 07:15:09 -07:00
wmayer
d159b97cae CMake: fix linking error in test function when linking Python statically 2023-01-09 11:41:22 +01:00