From 2920e9f2f9f1a1b0e69b67718e050fc5252cad0b Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Sat, 10 Nov 2018 17:11:45 +0100 Subject: [PATCH] Test a few error message with .IIF. --- tests/test-if.lst.ok | 18 +++++++++++++++++- tests/test-if.mac | 9 +++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/tests/test-if.lst.ok b/tests/test-if.lst.ok index 4c0c146..26668f9 100644 --- a/tests/test-if.lst.ok +++ b/tests/test-if.lst.ok @@ -132,7 +132,23 @@ 132 .iftf 133 000044 001 .byte 1 134 .endc - 134 + 135 + 136 ; errors +test-if.mac:137: ***ERROR Missing .(I)IF condition + 137 .iif +test-if.mac:138: ***ERROR Missing .(I)IF condition + 138 .iif 0 +test-if.mac:139: ***ERROR Missing .(I)IF condition + 139 .iif 1 +test-if.mac:140: ***ERROR Bad .IF expression + 140 000000 .iif undefd +test-if.mac:141: ***ERROR Bad .IF expression + 141 000000 .iif zero +test-if.mac:142: ***ERROR Bad .IF expression + 142 000000 .iif one +test-if.mac:143: ***ERROR Bad .IF expression + 143 000000 .iif z + 143 Symbol table diff --git a/tests/test-if.mac b/tests/test-if.mac index f25042a..9bbb581 100644 --- a/tests/test-if.mac +++ b/tests/test-if.mac @@ -132,3 +132,12 @@ min1 = -1 .iftf .byte 1 .endc + + ; errors + .iif + .iif 0 + .iif 1 + .iif undefd + .iif zero + .iif one + .iif z