(asma) Add fail tests to test suite.

This commit is contained in:
Andrew Alderwick 2022-11-10 22:03:36 +00:00
parent f6b0f0052f
commit cd01d69b8a
1 changed files with 13 additions and 0 deletions

View File

@ -67,6 +67,10 @@ expect_failure 'Address not in zero page: .hello' <<'EOD'
|1000 @hello |1000 @hello
.hello .hello
EOD EOD
expect_failure 'Address not in zero page: -hello' <<'EOD'
|1000 @hello
-hello
EOD
expect_failure 'Address outside range: ,hello' <<'EOD' expect_failure 'Address outside range: ,hello' <<'EOD'
|1000 @hello |1000 @hello
|2000 ,hello |2000 ,hello
@ -93,6 +97,15 @@ EOD
expect_failure 'Label not found: ;blah' <<'EOD' expect_failure 'Label not found: ;blah' <<'EOD'
|1000 ;blah |1000 ;blah
EOD EOD
expect_failure 'Label not found: :blah' <<'EOD'
|1000 :blah
EOD
expect_failure 'Label not found: =blah' <<'EOD'
|1000 =blah
EOD
expect_failure 'Label not found: -blah' <<'EOD'
|1000 -blah
EOD
expect_failure 'Label not found: ,blah' <<'EOD' expect_failure 'Label not found: ,blah' <<'EOD'
|1000 ,blah |1000 ,blah
EOD EOD