ref: f11241c2aea6d1ca5b2825786e0458a1aa7f3008
parent: cb47ac8b9750fb91036fbba2e515e4333fff7339
author: ISSOtm <eldredhabert0@gmail.com>
date: Tue Mar 9 19:42:01 EST 2021
Add INCBIN tests
--- /dev/null
+++ b/test/asm/data.bin
@@ -1,0 +1,1 @@
+Q����+)W-N^wY7F�� cʃ�.Yz���+���т�'挮�g}�!�XX6�"]|�6`�93�Qu/�]�@���-�ba�D�$�sF�$!B(�x� ����y���ܽ���{@O����
\ No newline at end of file
--- /dev/null
+++ b/test/asm/incbin-empty-bad.asm
@@ -1,0 +1,3 @@
+SECTION "Test", ROM0
+
+INCBIN "empty.bin", 0, 1
--- /dev/null
+++ b/test/asm/incbin-empty-bad.err
@@ -1,0 +1,2 @@
+FATAL: incbin-empty-bad.asm(3):
+ Specified range in INCBIN is out of bounds
--- /dev/null
+++ b/test/asm/incbin-empty.asm
@@ -1,0 +1,3 @@
+SECTION "Test", ROM0
+
+INCBIN "empty.bin"
--- /dev/null
+++ b/test/asm/incbin-end-0.asm
@@ -1,0 +1,1 @@
+INCBIN "data.bin", 123, 0
--- /dev/null
+++ b/test/asm/incbin-end-bad.asm
@@ -1,0 +1,3 @@
+SECTION "Bad", ROM0
+
+INCBIN "data.bin", 123, 1
--- /dev/null
+++ b/test/asm/incbin-end-bad.err
@@ -1,0 +1,2 @@
+FATAL: incbin-end-bad.asm(3):
+ Specified range in INCBIN is out of bounds
--- /dev/null
+++ b/test/asm/incbin-end.asm
@@ -1,0 +1,3 @@
+SECTION "Test", ROM0
+
+INCBIN "data.bin", 123