Add DSL architecture and validation test suite #10

Closed
opened 2026-06-06 14:02:49 +02:00 by yorunikakeru · 0 comments
Owner

Parent: #1

Goal

Add focused tests that lock down compile-time structure, builder output, validation behavior, and serialized IR.

Tasks

  • Unit-test domain smart constructors and builders.
  • Unit-test domain and cross-domain validators.
  • Add golden JSON tests for README examples.
  • Add compile-fail tests for structurally invalid DSL usage.
  • Test deterministic error and serialization order.

Acceptance criteria

  • Valid README examples pass end-to-end from DSL to JSON.
  • Representative invalid structures fail compilation.
  • Representative semantic conflicts return expected accumulated errors.
  • Test commands are wired into Cabal and nix flake check.
Parent: #1 ## Goal Add focused tests that lock down compile-time structure, builder output, validation behavior, and serialized IR. ## Tasks - Unit-test domain smart constructors and builders. - Unit-test domain and cross-domain validators. - Add golden JSON tests for README examples. - Add compile-fail tests for structurally invalid DSL usage. - Test deterministic error and serialization order. ## Acceptance criteria - Valid README examples pass end-to-end from DSL to JSON. - Representative invalid structures fail compilation. - Representative semantic conflicts return expected accumulated errors. - Test commands are wired into Cabal and `nix flake check`.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
FrogOS/DSL#10
No description provided.