From 17a0a1a406bb52bde8c1306cd7ff44c00acb84de Mon Sep 17 00:00:00 2001 From: andromeda Date: Wed, 18 Mar 2026 16:18:19 +0100 Subject: yeh only chr consts fn --- twasm/asm/tests.asm | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'twasm/asm/tests.asm') diff --git a/twasm/asm/tests.asm b/twasm/asm/tests.asm index 4d0ddc8..df60eb4 100644 --- a/twasm/asm/tests.asm +++ b/twasm/asm/tests.asm @@ -370,21 +370,13 @@ test_evaluate_constant: ; char mov rdi, .case0c - mov rsi, 3 + mov rsi, 6 call evaluate_constant cmp rax, [.case0c_solution] jne .fail cmp rdx, 0x03 jne .fail - ; str - mov rdi, .case0s - mov rsi, 5 - call evaluate_constant - cmp rax, [.case0s_solution] - jne .fail - cmp rdx, 0x04 - .pass: mov rsi, msg_pass call print @@ -402,10 +394,8 @@ test_evaluate_constant: .case2h_solution dq 0x1234567890 .case3h db "0x243F6A8885A308D3" .case3h_solution dq 0x243F6A8885A308D3 - .case0c db "' '" - .case0c_solution dq ' ' - .case0s db '"str"' - .case0s_solution dq "str" + .case0c db '"char"' + .case0c_solution dq "char" .case0q db "0q31103755242102" .case0q_solution dq 0q31103755242102 -- cgit v1.3.1