mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Add more test cases (#1409)
This commit is contained in:
1
test/asm/character-escape-at-end.asm
Normal file
1
test/asm/character-escape-at-end.asm
Normal file
@@ -0,0 +1 @@
|
||||
println "hello\
|
||||
5
test/asm/character-escape-at-end.err
Normal file
5
test/asm/character-escape-at-end.err
Normal file
@@ -0,0 +1,5 @@
|
||||
error: character-escape-at-end.asm(1):
|
||||
Illegal character escape at end of input
|
||||
error: character-escape-at-end.asm(1):
|
||||
Unterminated string
|
||||
error: Assembly aborted (2 errors)!
|
||||
1
test/asm/character-escape-at-end.out
Normal file
1
test/asm/character-escape-at-end.out
Normal file
@@ -0,0 +1 @@
|
||||
hello\
|
||||
3
test/asm/macro-args-outside-macro.asm
Normal file
3
test/asm/macro-args-outside-macro.asm
Normal file
@@ -0,0 +1,3 @@
|
||||
println \1
|
||||
println \<2>
|
||||
println \#
|
||||
7
test/asm/macro-args-outside-macro.err
Normal file
7
test/asm/macro-args-outside-macro.err
Normal file
@@ -0,0 +1,7 @@
|
||||
error: macro-args-outside-macro.asm(1):
|
||||
'\1' cannot be used outside of a macro
|
||||
error: macro-args-outside-macro.asm(2):
|
||||
'\<2>' cannot be used outside of a macro
|
||||
error: macro-args-outside-macro.asm(3):
|
||||
'\#' cannot be used outside of a macro
|
||||
error: Assembly aborted (3 errors)!
|
||||
3
test/asm/macro-args-outside-macro.out
Normal file
3
test/asm/macro-args-outside-macro.out
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
|
||||
7
test/link/script-syntax-error.link
Normal file
7
test/link/script-syntax-error.link
Normal file
@@ -0,0 +1,7 @@
|
||||
rom0
|
||||
"ROM0" org 1
|
||||
"NONE" optional
|
||||
|
||||
romx "1"
|
||||
romx 1
|
||||
"ROM1"
|
||||
3
test/link/script-syntax-error.out
Normal file
3
test/link/script-syntax-error.out
Normal file
@@ -0,0 +1,3 @@
|
||||
error: script-syntax-error.link(2): syntax error, unexpected ORG, expecting newline or OPTIONAL
|
||||
error: script-syntax-error.link(5): syntax error, unexpected string, expecting newline or number
|
||||
Linking failed with 2 errors
|
||||
Reference in New Issue
Block a user