Identical to 2db6c3c.
tests/break-pairs.nowline
nowline v1
// Fixture for every valid break pair (specs/break.md §3.4). Stresses: how
// each pair of after:, before: and duration: places a pause. Every item is
// 4w of work (the sized one is 4w of effort) alone in its own lane, so the
// stretches line up against the same date columns.
//
// What to look for when rendering this:
// - Each lane shows two stretches (three for "Both references") joined by
// a dotted line, and the work adds up to 4w.
// - The pause starts and ends where the pair says: on the dated anchors
// "review" (Jan 19), "mid" (Feb 2) and "ship" (Mar 2), after 2w of work, 1w before the
// end of the work, or a fixed 3w after the stop.
// - "Offset past the work" has no gap: its stop is past the end of the
// work, so it is one plain bar (the collapse cases are in
// break-collapse.nowline).
//
// Error pairs (each is NL.E1200 to NL.E1205, so they stay comments):
// break after:1w before:1w // two split points in the work
// break before:1w after:review // two stop points
// break after:1w duration:1w before:2w // all three keys
// break after:1w // one key
// break size:2w duration:1w // size is not a pause key
// break after:1w before:next-ship // a milestone with no date
roadmap break-pairs "Break pairs" start:2026-01-05 scale:1w calendar:full
anchor review date:2026-01-19
anchor mid date:2026-02-02
anchor ship date:2026-03-02
size l effort:4w
swimlane l1 "after offset, duration"
item offset-duration "Stop after 2w, pause 3w" duration:4w
break after:2w duration:3w
swimlane l2 "after offset, before ref"
item offset-ref "Stop after 2w, resume on ship" duration:4w
break after:2w before:ship
swimlane l3 "before offset, duration"
item left-duration "Stop with 1w left, pause 3w" duration:4w
break before:1w duration:3w
swimlane l4 "after ref, duration"
item ref-duration "Stop on review, pause 2w" duration:4w
break after:review duration:2w
swimlane l5 "after ref, before ref"
item both-refs "Stop on review, resume on ship" duration:4w
break after:review before:ship
swimlane l6 "duration, before ref"
item duration-ref "Pause 2w, resume on mid" duration:4w
break duration:2w before:mid
swimlane l7 "Date stop"
item date-stop "Stop on a date" duration:4w
break after:2026-01-19 duration:2w
swimlane l7b "Date resume"
item date-resume "Resume on a date" duration:4w
break after:2w before:2026-03-02
swimlane l8 "Sized, percent"
item percent "Half the effort, then 1w off" size:l
break after:50% duration:1w
swimlane l9 "Both references"
item three "Two pauses" duration:4w
break after:1w before:review
break after:1w before:ship
swimlane l10 "Offset past the work"
item plain "Stop past the end" duration:4w
break after:10w duration:1w