From 3087897c5aa716579b1255ac8c65dc1438515822 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 13 Dec 2023 10:40:59 +0100 Subject: Implemented the first part of day 4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- test/4.lua | 13 +++++++++++++ test/run.sh | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 test/4.lua (limited to 'test') diff --git a/test/4.lua b/test/4.lua new file mode 100644 index 0000000..41cbec2 --- /dev/null +++ b/test/4.lua @@ -0,0 +1,13 @@ +utils = require "utils" + +utils.StartRun("4") + +utils.MemTest("@test", {{0x07, "92"}, {0x08, "52"}}) + +-- The test appears to be done in a few frames. Let's run this several times +-- just in case. +for i = 0, 150, 1 do + emu.frameadvance(); +end + +utils.EndRun() diff --git a/test/run.sh b/test/run.sh index f8eac6c..527262d 100644 --- a/test/run.sh +++ b/test/run.sh @@ -19,7 +19,7 @@ if [ -n "${GITHUB_ACTION}" ]; then fi # Run all the tests that we have on Lua. -for name in $(seq 3); do +for name in $(seq 4); do DEBUG=1 make out/$name.nes fceux --loadlua "$ROOT/test/$name.lua" "$ROOT/out/$name.nes" done -- cgit v1.2.3