diff options
author | David Phillips <david@sighup.nz> | 2019-08-11 19:46:24 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2019-08-11 19:47:09 +1200 |
commit | 74e86763c680f98234b27267d21a2696603cb457 (patch) | |
tree | 3301c8ab3a283365692ebd18de697c08aaf3a5e5 /test/asm/should-pass | |
parent | 0d36dbbf03a836ab6bc0d964176015dc12e68b47 (diff) | |
download | toy-cpu-assembler-74e86763c680f98234b27267d21a2696603cb457.tar.xz |
Add new tests
Diffstat (limited to 'test/asm/should-pass')
-rw-r--r-- | test/asm/should-pass/001-empty.asm | 0 | ||||
-rw-r--r-- | test/asm/should-pass/002-eol.asm | 1 | ||||
-rw-r--r-- | test/asm/should-pass/003-comment.asm | 1 | ||||
-rw-r--r-- | test/asm/should-pass/004-comment-2.asm | 8 | ||||
-rw-r--r-- | test/asm/should-pass/005-comment-mix.asm | 7 |
5 files changed, 17 insertions, 0 deletions
diff --git a/test/asm/should-pass/001-empty.asm b/test/asm/should-pass/001-empty.asm new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/asm/should-pass/001-empty.asm diff --git a/test/asm/should-pass/002-eol.asm b/test/asm/should-pass/002-eol.asm new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/test/asm/should-pass/002-eol.asm @@ -0,0 +1 @@ + diff --git a/test/asm/should-pass/003-comment.asm b/test/asm/should-pass/003-comment.asm new file mode 100644 index 0000000..092bc2b --- /dev/null +++ b/test/asm/should-pass/003-comment.asm @@ -0,0 +1 @@ +; diff --git a/test/asm/should-pass/004-comment-2.asm b/test/asm/should-pass/004-comment-2.asm new file mode 100644 index 0000000..3e81d51 --- /dev/null +++ b/test/asm/should-pass/004-comment-2.asm @@ -0,0 +1,8 @@ +/**/ +; +/* */ +/* +asdf +*/ +# foo fou # +! fa foo diff --git a/test/asm/should-pass/005-comment-mix.asm b/test/asm/should-pass/005-comment-mix.asm new file mode 100644 index 0000000..01d1e65 --- /dev/null +++ b/test/asm/should-pass/005-comment-mix.asm @@ -0,0 +1,7 @@ +nop ; test +nop; +nop # test +ldi $0, 123 // asdf +//asdf +/* */ nop +jmp $0 ! foo |