ternlang-test 1.1.1

Test harness and assertion utilities for ternlang programs — BET-VM test runner, trit assertions, and golden-file diffing.
Documentation

ternlang-test — test framework for .tern programs.

Runs source strings through the full pipeline (parse → stdlib resolve → semantic check → codegen → BET VM) and asserts on the outcome.

Quick start

# use ternlang_test::{TernTestCase, TernExpected, assert_tern};
# fn main() {
assert_tern!(TernTestCase {
    name: "hold is the zero state",
    source: "fn main() -> trit { return 0; }",
    expected: TernExpected::Trit(0),
});
# }