From f4f0f50d80d07f19ba330653dba1d5180ea793b7 Mon Sep 17 00:00:00 2001 From: andromeda Date: Mon, 23 Mar 2026 22:27:52 +0100 Subject: test completeness, couple semantics --- twasm/asm/tests.asm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'twasm/asm/tests.asm') diff --git a/twasm/asm/tests.asm b/twasm/asm/tests.asm index 9d24b81..23e0178 100644 --- a/twasm/asm/tests.asm +++ b/twasm/asm/tests.asm @@ -13,6 +13,8 @@ run_tests: mov rsi, .msg call print.test + call test_completeness + call clear_test_arena call test_djb2 @@ -46,6 +48,27 @@ run_tests: ret .msg db "running test suite...", 0x0A, 0x00 +; ------------------------------------------------------------------------------ +; test_completeness +; +; description: +; visual confirmation of binary integrity +; ------------------------------------------------------------------------------ + +test_completeness: + mov rsi, .msg + call print.test + mov rsi, .msg_content + call print + mov rsi, msg_end + call print + mov rsi, .msg_confirm + call print + ret + .msg db "test_completeness...", 0x0A, 0x00 + .msg_content db " here is the ", 0x00 + .msg_confirm db " here is the end of the binary ->|", 0x0A, " assert: the previous 2 lines are identical", 0x0A, 0x00 + ; ------------------------------------------------------------------------------ ; test_elemb ; -- cgit v1.3.1