test: add console test reproducing planar drag quaternion flip (#338) #39
Reference in New Issue
Block a user
Delete Branch "test/planar-drag-console-test"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
tests/console_test_planar_drag.py— a live FreeCAD console test that reproduces the quaternion branch-jump failure from create#338.What this test does
Runs 5 test suites in the FreeCAD Python console against a live (broken) instance:
validateNewPlacements()matches the real behavior (usesacos(w)notacos(|w|))Key findings
_enforce_quat_continuityonly catches sign flips, not these deeper branch jumpsacos(w)notacos(|w|), so opposite-hemisphere quaternions appear as ~360° rotationTest 2 failure pattern (reproducible)
Refs: kindred/create#338, kindred/create#339