Skip to main content

Module assertions

Module assertions 

Source
Expand description

Set of functions used throughout assure the correctness of the library.

Functions§

cde_matches_fresh
Checks that cde matches a fresh copy of base with dynamic_hazards registered: the same hazards, and an index that matches them.
hull_indices_match_reference
Checks a transformed buffer’s hull indices against those recomputed from its reference.
index_matches_hazards
Checks that the engine’s index holds exactly the bounding boxes of all hazards except the exterior, sorted by x_min, and that its chunk bounds are the largest x_max of each chunk.
layout_cde_matches_fresh
Checks that the layout’s engine holds the container’s hazards and those of its placed items.
print_layout
Prints code to rebuild a layout. Intended for debugging purposes.
snapshot_matches_layout