Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 349 Bytes

example_test.md

File metadata and controls

25 lines (16 loc) · 349 Bytes

Example Test

Tests are normal markdown files and can be used as documentation.

nk blocks

nk blocks are executed as written. Typically this is where reusable definitions go:

: add_2 2 + ;

nkt blocks

nkt blocks contain actual tests:

> 1 add_2 .
3

If there's any output mismatch, test execution will fail.