Commit 1fc9cc0
committed
tests: XML round-trip test suite and three serialization bug fixes
Add test_XML_RoundTrip.py covering all property and primitive types via
Write2XML/ReadFromXML with non-default values. Three bugs found and fixed:
- CSPropProbeBox: Weight/StartTime/StopTime used SetAttribute (int) instead
of SetDoubleAttribute, truncating fractional values.
- CSProperties: bVisisble was never serialized; SetVisibility(false) was
silently lost on re-import.
- CSProperties.pyx: CSPropLorentzMaterial weight functions passed Python str
to C++ without .encode('UTF-8'), unlike the equivalent Debye code.
Signed-off-by: Thorsten Liebig <thorsten.liebig@gmx.de>
Generated-by: Claude Sonnet 4.61 parent 6f7b971 commit 1fc9cc0
4 files changed
Lines changed: 438 additions & 3 deletions
File tree
- python
- CSXCAD
- tests
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1503 | 1503 | | |
1504 | 1504 | | |
1505 | 1505 | | |
| 1506 | + | |
1506 | 1507 | | |
1507 | 1508 | | |
1508 | 1509 | | |
| |||
0 commit comments