Skip to content

Add edge-case tests and fix min/max clamping - #3

Closed
SirRyRy wants to merge 31 commits into
GNAT-Academic-Program:mainfrom
emmabellerogo:rylen/edge-cases
Closed

SirRyRy wants to merge 31 commits into
GNAT-Academic-Program:mainfrom
emmabellerogo:rylen/edge-cases

Conversation

@SirRyRy

@SirRyRy SirRyRy commented Oct 29, 2026 •

Copy link
Copy Markdown

Added 12 edge-case checks to test how the Flexbox engine handles
empty arrays, overflowing items, zero-size containers, conflicting
minimum/maximum sizes, and grow rounding.

The new tests identified two failures involving minimum and maximum
size conflicts. Updated the Clamp function to prioritize the minimum
size when the limits conflict.

Validation:

  • Main project builds successfully
  • All unit tests pass
  • Showcase builds and runs successfully (9 nodes)

emmabellerogo and others added 30 commits October 9, 2026 01:00
Implement flex-grow distribution
Use SPARK-legal fixed-point conversions
Rerun the engine numbers on current main (flex-grow is merged, so
content is now 536 tall) and correct the mismatch notes: the
remaining gaps come from missing stretch and align-items: center.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01568q7xUoydYKeS7B1KnVV2
Stretch items without a cross size to fill the line
Align items on the cross axis (align-items, align-self}
Prove Distribute_Grow with loop invariants (18 -> 6 unproved)
Justify items along the main axis (justify-content)
Update milestone 1 table, fix engine comments, test align inheritance
@SirRyRy SirRyRy closed this Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants