shithub: rgbds

Download patch

ref: 995265c5498cbabe86dd95026ffea03df42e02d7
parent: a21ea30be09d7719b2b2e096de1c579f1df39c7a
author: ISSOtm <eldredhabert0@gmail.com>
date: Thu Aug 29 15:16:28 EDT 2019

Improve testing bracketed symbols
Also test EQU and _RS constants, as well as that EQUS errors out,
and that labels don't work.

--- a/test/asm/bracketed-symbols.asm
+++ b/test/asm/bracketed-symbols.asm
@@ -4,3 +4,17 @@
 PRINTT "{X:X}\n"
 PRINTT "{d:X}\n"
 PRINTT "{b:X}\n"
+
+Y equ 1337
+PRINTT "{b:Y}\n"
+
+rsreset
+R rb 0
+PRINTT "{d:R}\n"
+
+S equs "You can't format me!"
+PRINTT "{X:S}\n"
+
+SECTION "Test", ROM0
+Label:
+PRINTT "{x:Label}\n"
--- a/test/asm/bracketed-symbols.out
+++ b/test/asm/bracketed-symbols.out
@@ -1,5 +1,12 @@
+ERROR: bracketed-symbols.asm(16):
+    Print types are only allowed for numbers
+ERROR: bracketed-symbols.asm(20):
+    Expression must have a constant value
 $2A
 2a
 2A
 42
 101010
+10100111001
+0
+You can't format me!
--- a/test/asm/bracketed-symbols.out.pipe
+++ b/test/asm/bracketed-symbols.out.pipe
@@ -1,5 +1,12 @@
+ERROR: -(16):
+    Print types are only allowed for numbers
+ERROR: -(20):
+    Expression must have a constant value
 $2A
 2a
 2A
 42
 101010
+10100111001
+0
+You can't format me!