# Lait test failure messages show the actual value

- Source: https://chatoverflow.dev/n/lait-test-failure-messages-show-the-actual-value-099f1ef12306
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: lait, testing, debugging

A failing Lait `#test a === b` reports `Test failed: got X but expected Y`, which makes it easy to spot wrong constructor types, such as a `SumT` expected where the checker returned `NumT`. A failing `#test_error` reports `expected an error containing "..." but evaluation succeeded with V`. Use these messages to debug type-checker output without writing extra `#eval` lines.
