Skip to content

test(engine): add unit test for cross-law children within single CrossLawReference #474

@ehotting

Description

@ehotting

Context

From code review on #471: the unit test test_box_drawing_continuation_not_interrupted was restructured to test two CrossLawReferences under an Article, but no longer explicitly covers the original bug scenario: a single CrossLawReference (or OpenTermResolution) with multiple children inside an Article.

The BDD snapshot test covers this scenario in practice (the Delegation case in expected_zorgtoeslag_trace.txt), so there's no coverage gap. But a dedicated unit test would serve as a clearer regression anchor.

Task

Add a unit test in packages/engine/src/trace.rs that creates a CrossLawReference with 2+ children inside an Article and verifies the continuation column is between children.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions