Nordhavn / specs / nordhavn-site / atlas / Shelf

nordhavn-site / atlasdata

Shelf

Purpose

The whole shelf — every stack the atlas publishes, in the order given. The shelf is what the weaving reads whole: the order of its stacks is the order a reader walks them, this site's own beside convene's. Stacks keep their own names on the shelf: two stacks going by the same name would make "which convene?" unanswerable, so the shelf refuses them.

Attributes

Invariants

Scenarios

A shelf holds its stacks in the order given

Given: a Stack named "convene" and a Stack named "nordhavn-site" When: a Shelf is created with them, "convene" first Then: it is accepted and holds "convene" then "nordhavn-site", in that order

An empty shelf

Given: no stacks When: a Shelf is created Then: it is accepted and holds no stacks