Commit Graph

211 Commits

Author SHA1 Message Date
Adrián Insaurralde Avalos
592b31eb7b Base: escape quotes in Quantity::getSafeUserString
fix #12204 and fix #12206
2024-02-12 12:09:30 -06:00
wmayer
53427edc2c Tests: add unit tests for IsNormal() and IsParallel() 2024-02-12 11:58:45 -06:00
bgbsww
a6095da2af Toponaming/Part: Add tests, dependencies, and cleanup 2024-02-09 16:42:20 -05:00
Zheng, Lei
b2dac5a97d Toponaming/Part: Transfer makeElementBoolean in 2024-02-09 08:23:30 -05:00
Chris Hennes
6777b4843a Merge pull request #12189 from CalligaroV/toponamingTopoShapeWire
Toponaming makeElementWire
2024-02-08 20:59:26 -06:00
Chris Hennes
daf0a04a18 Merge pull request #11853 from AjinkyaDahale/sketcher-general-tangency-splines
[Sketcher] General Tangency with B-splines (re-do)
2024-02-08 13:46:44 -06:00
Chris Hennes
54bf37c54c Merge pull request #12295 from bgbsww/bgbsww-toponamingFeaturePartBoolean
Toponaming: transfer in FeaturePartBoolean
2024-02-08 13:29:38 -06:00
Ajinkya Dahale
6053798a85 [planegcs][test] Add Spline and Arc tangent test 2024-02-08 23:46:15 +05:30
bgbsww
7b330a523e Clean code and testing tweak 2024-02-08 11:09:36 -05:00
CalligaroV
b186d16ca7 Part/Toponaming: makeElementWires
* Renamed enum classes members to lowercaseCapword
 * Moved struct ShapeHasher back to TopoShapeMapper.h
 * Added test for MapperMaker::generated
 * Modifications for clang-tidy warnings
 * Formatting

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-02-08 13:56:30 +01:00
CalligaroV
44abeca013 Merge branch 'main' of https://github.com/FreeCAD/FreeCAD.git into toponamingTopoShapeWire
# Conflicts:
#	src/Mod/Part/App/TopoShape.h
#	src/Mod/Part/App/TopoShapeExpansion.cpp
2024-02-07 23:51:49 +01:00
CalligaroV
13cd0f1931 Part/Toponaming: makeElementWires
* Added test for MapperMaker::generated
 * Renamed spit into splitMkr in the test for MapperMaker::modified
 * Disabled test for TopoShape::makeElementWires

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-02-07 22:23:03 +01:00
Chris Hennes
dce4d20a8f Merge pull request #12237 from bgbsww/bgbsww-toponamingMakeRefine
Toponaming: Transfer in makeElementRefine
2024-02-07 15:19:27 -06:00
CalligaroV
55455ec804 Part/Toponaming: makeElementWires
* Added test for MapperMaker::modified

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-02-07 15:10:58 +01:00
bgbsww
7c1afff2d9 Add Test for MakeElementRefine 2024-02-06 15:58:37 -05:00
Adrian Insaurralde Avalos
f5da3925d9 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
bgbsww
57d8a9e61a Switch to using enum 2024-02-04 09:27:16 +01:00
Adrián Insaurralde Avalos
691511e975 Test: build Mod test only if the module is being built 2024-02-02 00:04:39 +01:00
CalligaroV
a137f29e61 Tests/Toponaming: Add test for simple shapes
* Added test for Tag Info generated by makeShapeWithElementMap
 * Make sure that there's at least one mapped element before checking the element map

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-02-01 15:19:42 +01:00
CalligaroV
02eb22928e Merge branch 'main' into toponamingTopoShapeWire
# Conflicts:
#	src/Mod/Part/App/TopoShape.h
#	src/Mod/Part/App/TopoShapeExpansion.cpp
#	tests/src/Mod/Part/App/TopoShapeExpansion.cpp

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-01-29 19:41:56 +01:00
bgbsww
29213ecb57 Merge branch 'main' into bgbsww-toponamingMakeElementShape 2024-01-28 11:19:11 -05:00
bgbsww
42435333ff Clean code and add tests 2024-01-28 11:04:34 -05:00
Chris Hennes
4740ac88f2 Tests/Toponaming: Post-merge cleanup 2024-01-27 14:01:35 -06:00
bgbsww
88838cfb4c Cleaned up complex test (#15)
* Element Map Test

* Rename test and add more assertions

* Reduce test complexity
2024-01-27 12:00:12 -06:00
Vincenzo Calligaro
1ecae13bca Tests for makeShapeWithElementMap (#12)
* Tests for makeShapeWithElementMap
 * Added nullShapesThrows tests for the classes derived from <TopoDS_Shape>
 * Added test passing as "sources" parameter of the tested method an empty vector of TopoShapes objects
 * Added test with unmappable sources
 * Added test to find shapes inside other shapes made from the first ones
* Tests for makeShapeWithElementMap with simple shapes
 * Added test to find source shapes' sub-shapes name in the elements maps
 * Added test to find the "MAK" OpCode in the elements maps names

---------

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-01-27 12:00:12 -06:00
bgbsww
7e550c7e26 Rename test and add more assertions 2024-01-27 12:00:12 -06:00
bgbsww
2d30bad9aa Element Map Test 2024-01-27 12:00:12 -06:00
Chris Hennes
e9092bcc7c Tests/Toponaming: Add test framework for makeShapeWithElementMap 2024-01-27 12:00:12 -06:00
bgbsww
e6341dd51a Add helper methods 2024-01-26 17:42:51 -07:00
bgbsww
1aff0ca7f5 Tests for makeElementShell 2024-01-25 11:13:00 -05:00
bgbsww
a5cf4bdd33 Tweak resetElementMap to default to empty defined element map (#12098)
* Tweak resetElementMap tp default to empty defined element map

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-24 21:24:08 -06:00
bgbsww
4d12e338ec Merge branch 'main' into bgbsww-toponaming-makeElementFace 2024-01-23 08:14:07 -05:00
Chris Hennes
096c11e47f Merge pull request #12023 from bgbsww/bgbsww-patch-30
Initial code of mapSubElement Test
2024-01-22 16:02:00 -06:00
bgbsww
266d9c880a Merge branch 'main' into bgbsww-toponaming-makeElementFace 2024-01-22 12:50:13 -05:00
Chris Hennes
5a7956cd61 Merge pull request #12014 from bgbsww/bgbsww-patch-29
Toponaming ShapeMapper
2024-01-22 11:23:56 -06:00
bgbsww
7f2d2050bd Single char constants 2024-01-22 11:29:41 -05:00
bgbsww
26dbd32c15 lint / review cleanups 2024-01-22 11:01:19 -05:00
bgbsww
2ede6a667e Merge branch 'main' into bgbsww-toponaming-makeElementFace 2024-01-21 15:52:31 -05:00
bgbsww
d405fdadc4 Add tests, reformat to modern C++, clean 2024-01-21 15:34:46 -05:00
bgbsww
3266c38c96 Improve tests 2024-01-19 20:59:19 -05:00
bgbsww
ab3bb9fb71 Improve tests 2024-01-19 10:49:47 -05:00
Chris Hennes
297dff5e9b Merge pull request #12007 from chennes/toponamingElementNameComparator
App/Toponaming: Add Comparator for mapped elements
2024-01-19 09:20:59 -06:00
bgbsww
874d421fa8 Split test cases 2024-01-18 13:15:21 -05:00
bgbsww
fae1cd569f Lint and other cleanups 2024-01-18 11:46:15 -05:00
Chris Hennes
f0f5a0a5bc Merge pull request #11994 from 3x380V/avoid_fmtlib
Tests: Avoid use of fmtlib when not needed
2024-01-17 21:35:23 -06:00
bgbsww
60ae251b61 Initial code of mapSubElement Test 2024-01-17 09:13:39 -05:00
bgbsww
0cb513f084 Move MapperMaker and MapperHistory out to future PR 2024-01-17 08:55:16 -05:00
Chris Hennes
36451d1add Tests/Toponaming: Add tests for ElementNameComparator
This verifies the existing functionality, but does not alter it. Two tests are disabled because they represent cases that the current code does not handle correctly. They are edge cases that are not expected in real code.
2024-01-16 19:25:38 -06:00
bgbsww
51ee04ca34 Tests for transferred TopoShapeMapper objects 2024-01-16 20:11:59 -05:00
Chris Hennes
f66a4e57d2 Part/Toponaming: Linter cleanup of makeElementWires 2024-01-15 16:39:48 -06:00