Ni Jingzhe
5efd5bb31a
tests: do not depend on the order of the names a single cell defines (Python 3.12 CI failed on it)
...
DECISION: the open solids a notebook leaves are compared as a set of names in the tests, and the docstring of
SeveralOpenBodiesError says the order is the cell order only across cells.
WHY: CI (Python 3.12) failed test_one_solid_part.py::TestNotebookProduct::test_several_open_solids_have_no_product
with `('tool', 'base') != ('base', 'tool')`. Both solids are defined by one cell, and the names a cell defines
come from a set, so their order is not fixed (it differed on 3.12; it can differ on any run). The behaviour that
matters (design-docs/part-holds-one-solid.md: several open solids give no product, and the error names them and
says what to do) does not depend on that order, and the editor's own list (`snapshot()["open"]`) is built from the
cell order and stays deterministic. So the test asserted more than the rule: it now asserts the set of names, in
this test and in the same assertion of test_editor_features.py (which passed locally by luck).
- runtime/projection.py: SeveralOpenBodiesError's docstring no longer says the names come "in cell order"
without qualification.
Checked: test_one_solid_part.py passes (28 tests). I did not make the order deterministic in the code: nothing
needs it, and the owner's rule is to do only what is necessary.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com >
2026-11-10 04:37:09 +08:00
..
2026-10-07 17:05:30 +08:00
2026-09-09 17:35:59 +08:00
2026-10-24 02:55:35 +08:00
2026-10-28 16:43:42 +08:00
2026-10-29 03:36:37 +08:00
2026-07-23 03:15:43 +08:00
2026-09-18 12:10:23 +08:00
2026-10-21 00:47:46 +08:00
2026-10-07 17:05:30 +08:00
2026-09-01 02:09:29 +08:00
2026-10-02 17:16:51 +08:00
2026-09-06 18:30:16 +08:00
2026-10-24 02:55:35 +08:00
2026-10-02 17:16:16 +08:00
2026-11-03 03:18:38 +08:00
2026-10-21 01:04:39 +08:00
2026-10-02 17:16:16 +08:00
2026-11-10 04:07:57 +08:00
2026-10-24 02:55:35 +08:00
2026-10-07 17:05:30 +08:00
2026-10-13 15:58:29 +08:00
2026-10-24 02:55:35 +08:00
2026-10-24 02:55:35 +08:00
2026-10-13 15:58:29 +08:00
2026-10-24 02:55:35 +08:00
2026-11-02 13:07:21 +08:00
2026-11-05 21:42:09 +08:00
2026-09-09 21:19:33 +08:00
2026-09-10 00:11:28 +08:00
2026-11-04 05:20:44 +08:00
2026-11-10 04:14:05 +08:00
2026-10-30 17:53:37 +08:00
2026-10-24 02:55:35 +08:00
2026-11-02 16:58:37 +08:00
2026-10-24 02:55:35 +08:00
2026-10-24 02:55:35 +08:00
2026-10-09 18:31:38 +08:00
2026-11-01 01:18:39 +08:00
2026-10-24 02:55:35 +08:00
2026-11-06 06:12:46 +08:00
2026-11-03 03:19:55 +08:00
2026-11-06 05:45:24 +08:00
2026-11-10 04:37:09 +08:00
2026-11-05 21:42:09 +08:00
2026-11-04 11:19:17 +08:00
2026-11-06 04:47:31 +08:00
2026-11-03 03:19:55 +08:00
2026-11-04 12:29:01 +08:00
2026-11-04 13:43:23 +08:00
2026-11-10 04:17:28 +08:00
2026-11-04 20:53:29 +08:00
2026-09-12 17:03:42 +08:00
2026-10-29 03:36:37 +08:00
2026-10-24 02:55:35 +08:00
2026-09-12 18:47:18 +08:00
2026-09-12 18:47:18 +08:00
2026-09-12 18:47:18 +08:00
2026-10-12 23:21:58 +08:00
2026-10-02 19:34:13 +08:00
2026-09-13 04:19:17 +08:00
2026-10-02 17:16:16 +08:00
2026-10-29 03:50:36 +08:00
2026-10-02 17:16:16 +08:00
2026-07-25 15:23:49 +08:00
2026-10-02 17:16:16 +08:00
2026-10-02 17:16:16 +08:00
2026-10-02 17:16:16 +08:00
2026-08-15 16:17:11 +08:00
2026-10-24 02:55:35 +08:00
2026-09-10 00:11:28 +08:00
2026-10-29 02:05:58 +08:00
2026-11-06 03:23:58 +08:00
2026-10-24 02:55:35 +08:00
2026-10-24 02:55:35 +08:00
2026-10-24 02:55:35 +08:00
2026-10-24 02:55:35 +08:00
2026-10-24 02:55:35 +08:00
2026-10-25 02:00:42 +08:00
2026-10-24 02:55:35 +08:00
2026-10-24 02:55:35 +08:00
2026-10-24 02:55:35 +08:00
2026-10-24 02:55:35 +08:00
2026-09-11 13:36:27 +08:00
2026-09-01 02:09:29 +08:00
2026-10-24 02:55:35 +08:00
2026-10-24 02:55:35 +08:00
2026-06-20 22:12:53 +08:00
2026-08-31 12:46:57 +08:00
2026-10-20 23:18:40 +08:00
2026-10-24 02:55:35 +08:00
2026-11-05 21:42:09 +08:00
2026-10-20 21:51:31 +08:00
2026-10-17 03:11:06 +08:00
2026-11-10 04:37:09 +08:00
2026-11-04 04:40:38 +08:00
2026-11-05 23:13:51 +08:00
2026-10-25 16:03:01 +08:00
2026-10-02 17:16:16 +08:00
2026-10-02 17:16:16 +08:00
2026-10-02 17:16:16 +08:00
2026-11-06 04:29:36 +08:00
2026-10-24 02:55:35 +08:00
2026-11-05 16:08:28 +08:00
2026-09-01 02:09:29 +08:00
2026-10-02 17:16:16 +08:00
2026-10-24 02:55:35 +08:00
2026-10-02 17:16:16 +08:00
2026-08-31 12:46:57 +08:00
2026-10-13 15:58:29 +08:00
2026-10-07 16:58:08 +08:00
2026-08-31 12:46:57 +08:00
2026-10-29 02:05:58 +08:00
2026-05-03 03:03:29 +08:00
2026-09-01 02:09:29 +08:00
2026-08-31 12:46:57 +08:00
2026-08-31 12:46:57 +08:00
2026-08-31 12:46:57 +08:00
2026-10-24 02:55:35 +08:00
2026-08-22 20:53:32 +08:00
2026-11-04 20:53:29 +08:00
2026-10-25 02:00:42 +08:00
2026-08-19 14:42:27 +08:00
2026-10-02 17:16:16 +08:00
2026-09-01 02:09:29 +08:00
2026-08-20 14:52:07 +08:00
2026-10-02 17:16:51 +08:00
2026-10-12 07:20:32 +08:00
2026-10-13 15:58:29 +08:00
2026-11-05 23:13:51 +08:00
2026-10-20 23:45:59 +08:00
2026-09-13 04:19:17 +08:00
2026-11-05 02:26:34 +08:00
2026-09-01 02:09:29 +08:00
2026-10-24 02:55:35 +08:00
2026-10-24 02:55:35 +08:00
2026-11-03 03:18:38 +08:00
2026-09-04 05:14:09 +08:00
2026-11-04 13:17:29 +08:00
2026-08-26 02:29:49 +08:00
2026-10-12 23:21:58 +08:00
2026-11-01 01:18:39 +08:00
2026-09-11 19:38:39 +08:00
2026-10-02 17:16:16 +08:00
2026-08-31 12:46:57 +08:00
2026-10-30 20:31:24 +08:00
2026-10-21 00:25:02 +08:00
2026-10-24 02:55:35 +08:00
2026-07-23 04:23:00 +08:00
2026-09-01 02:09:29 +08:00
2026-09-01 02:09:29 +08:00
2026-10-24 02:55:35 +08:00
2026-11-04 11:21:36 +08:00
2026-11-06 19:04:16 +08:00
3D curves drawn in the viewport (W: lines, arcs, splines on workplanes, snapped to vertices, edge midpoints, workplane origins; a point on a workplane follows it, a snapped vertex is a scad.ref), wires and edges drawn from kernel samples; a failing step previews the model before it; independent spline handles, anchors added while drawing, Shift+A anchor mode; sketch regions (make_faces_from_sketch_rfacelist: outer loops with their holes); a tag on several entities names a set and keeps its pieces; exact surface normals in preview meshes (smooth shading, shared vertices); SimpleWorkplane.point; scad.ref.of a vertex
2026-11-05 04:30:26 +08:00
2026-11-04 05:23:42 +08:00
2026-07-15 21:48:06 +08:00
2026-10-24 02:55:35 +08:00
2026-07-15 19:58:30 +08:00
2026-10-02 17:16:16 +08:00
2026-10-02 17:16:16 +08:00
2026-10-21 00:25:02 +08:00
2026-11-05 21:42:09 +08:00
2026-10-21 00:25:02 +08:00
2026-10-24 02:55:35 +08:00
2026-09-10 22:07:28 +08:00
2026-11-05 01:29:48 +08:00
2026-10-29 02:05:58 +08:00