diff options
| author | andromeda <andromeda@lenovo> | 2026-03-23 22:27:52 +0100 |
|---|---|---|
| committer | andromeda <andromeda@lenovo> | 2026-03-23 22:27:52 +0100 |
| commit | f4f0f50d80d07f19ba330653dba1d5180ea793b7 (patch) | |
| tree | 14a06cfc5d017631da31234832766e429576e3b1 /twasm/asm/tests.asm | |
| parent | 9233ca421bc20af58b661c187bd4c6ab2d1066ca (diff) | |
test completeness, couple semantics
Diffstat (limited to 'twasm/asm/tests.asm')
| -rw-r--r-- | twasm/asm/tests.asm | 23 |
1 files changed, 23 insertions, 0 deletions
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 @@ -47,6 +49,27 @@ run_tests: .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 ; ; description: |
