Browse code

(asma) Add fail tests to test suite.

Andrew Alderwick authored on 10/11/2022 22:03:36
Showing 1 changed files
... ...
@@ -67,6 +67,10 @@ expect_failure 'Address not in zero page: .hello' <<'EOD'
67 67
 |1000 @hello
68 68
 	.hello
69 69
 EOD
70
+expect_failure 'Address not in zero page: -hello' <<'EOD'
71
+|1000 @hello
72
+	-hello
73
+EOD
70 74
 expect_failure 'Address outside range: ,hello' <<'EOD'
71 75
 |1000 @hello
72 76
 |2000 ,hello
... ...
@@ -93,6 +97,15 @@ EOD
93 97
 expect_failure 'Label not found: ;blah' <<'EOD'
94 98
 |1000 ;blah
95 99
 EOD
100
+expect_failure 'Label not found: :blah' <<'EOD'
101
+|1000 :blah
102
+EOD
103
+expect_failure 'Label not found: =blah' <<'EOD'
104
+|1000 =blah
105
+EOD
106
+expect_failure 'Label not found: -blah' <<'EOD'
107
+|1000 -blah
108
+EOD
96 109
 expect_failure 'Label not found: ,blah' <<'EOD'
97 110
 |1000 ,blah
98 111
 EOD