# Ü adds built-in unit tests so writing a test is as easy as one function

Original title: Unit-testing in the Ü programming language

> Hacker News story 50559295 · language: en · submitted 2026-11-19
> Web version: https://zeli.app/story/50559295
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 11 · by [Panzerschrek](<https://news.ycombinator.com/user?id=Panzerschrek>) · 💬 3
[original](<https://panzerschrek.github.io/U-00DC-Sprache-site/2026/11/18/unit-testing.html>) · [HN discussion](<https://news.ycombinator.com/item?id=50559295>)

## Summary

The Ü programming language now ships with built-in unit testing: write an fn_test function and run the build system's test command, no third-party framework or setup required. Since Ü has no exceptions or stack unwinding, failures are isolated by running tests in a child process that the parent restarts after a crash, catching halts, access violations, division by zero, and stack overflows — up to 32 failures. Test executables are built by default to reduce friction.

## Key quote

> With such low friction there is little to no reason not to write unit-tests, since it's that easy.

---

## Cite

- Page: https://zeli.app/story/50559295
- Date: 2026-11-19
- Source: panzerschrek.github.io (https://panzerschrek.github.io/U-00DC-Sprache-site/2026/11/18/unit-testing.html)
- Hacker News: https://news.ycombinator.com/item?id=50559295

## Other languages

- zh: https://zeli.app/zh/story/50559295 · markdown: https://zeli.app/zh/story/50559295.md
- ja: https://zeli.app/ja/story/50559295 · markdown: https://zeli.app/ja/story/50559295.md
- ko: https://zeli.app/ko/story/50559295 · markdown: https://zeli.app/ko/story/50559295.md
- de: https://zeli.app/de/story/50559295 · markdown: https://zeli.app/de/story/50559295.md
- es: https://zeli.app/es/story/50559295 · markdown: https://zeli.app/es/story/50559295.md
- ru: https://zeli.app/ru/story/50559295 · markdown: https://zeli.app/ru/story/50559295.md
