From 37d815c6c39eb333b1227231e1eaef8f1d83770a Mon Sep 17 00:00:00 2001 From: Krusty/Benediction Date: Mon, 15 Jan 2024 20:25:03 +0100 Subject: [PATCH] Add missing tests --- cpclib-basm/tests/asm/good_if2.asm | 13 +++++++++++++ cpclib-basm/tests/asm/good_include5.asm | 12 ++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 cpclib-basm/tests/asm/good_if2.asm create mode 100644 cpclib-basm/tests/asm/good_include5.asm diff --git a/cpclib-basm/tests/asm/good_if2.asm b/cpclib-basm/tests/asm/good_if2.asm new file mode 100644 index 00000000..e198f37a --- /dev/null +++ b/cpclib-basm/tests/asm/good_if2.asm @@ -0,0 +1,13 @@ + + org 0x100 + + if 0 == 1 + fail "not reachable" + elseifdef toto + fail "not reachable" + elseifndef toto + print "reached" + db 1 + else + fail "not reachable" + endif \ No newline at end of file diff --git a/cpclib-basm/tests/asm/good_include5.asm b/cpclib-basm/tests/asm/good_include5.asm new file mode 100644 index 00000000..a83809f1 --- /dev/null +++ b/cpclib-basm/tests/asm/good_include5.asm @@ -0,0 +1,12 @@ + org 0x4000 + + ld b, test + djnz $ + + include good_db.asm + + jp $ + + binclude good_db.asm + +test equ 5 \ No newline at end of file