diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2023-12-08 21:57:52 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2023-12-08 21:57:52 +0100 |
| commit | 46103595c072651ade490c48c417f5d8d7ba9327 (patch) | |
| tree | 92cc48e3e88e614618ea2cca3771c88674f92189 /test/2.lua | |
| parent | 57fde0bb5184371da33b212de6731c6e6829349f (diff) | |
| download | aoc2023.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/2.lua')
| -rw-r--r-- | test/2.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/2.lua b/test/2.lua new file mode 100644 index 0000000..7cb8f40 --- /dev/null +++ b/test/2.lua @@ -0,0 +1,13 @@ +utils = require "utils" + +utils.StartRun("2") + +utils.MemTest("@test", {{0x0B, "00"}, {0x0C, "01"}, {0x0D, "0F"}, {0x0E, "FD"}}) + +-- 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() |
