aboutsummaryrefslogtreecommitdiff
path: root/test/1.lua
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2023-12-08 21:57:52 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2023-12-08 21:57:52 +0100
commit46103595c072651ade490c48c417f5d8d7ba9327 (patch)
tree92cc48e3e88e614618ea2cca3771c88674f92189 /test/1.lua
parent57fde0bb5184371da33b212de6731c6e6829349f (diff)
downloadaoc2023.nes-46103595c072651ade490c48c417f5d8d7ba9327.tar.gz
aoc2023.nes-46103595c072651ade490c48c417f5d8d7ba9327.zip
Added a test suite
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'test/1.lua')
-rw-r--r--test/1.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/1.lua b/test/1.lua
new file mode 100644
index 0000000..b51f21e
--- /dev/null
+++ b/test/1.lua
@@ -0,0 +1,13 @@
+utils = require "utils"
+
+utils.StartRun("1")
+
+utils.MemTest("@test", {{0x08, "D6"}, {0x09, "A9"}})
+
+-- The test appears to be done in a few frames. Let's run this several times
+-- just in case.
+for i = 0, 20, 1 do
+ emu.frameadvance();
+end
+
+utils.EndRun()