aboutsummaryrefslogtreecommitdiff
path: root/test/utils.lua
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2023-12-12 20:03:06 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2023-12-12 20:03:17 +0100
commit63897b552fc0d0a2544a547318017485ed220c67 (patch)
tree2cc609226ce0a557012b061c65091750f2520c4c /test/utils.lua
parent46103595c072651ade490c48c417f5d8d7ba9327 (diff)
downloadaoc2023.nes-63897b552fc0d0a2544a547318017485ed220c67.tar.gz
aoc2023.nes-63897b552fc0d0a2544a547318017485ed220c67.zip
Implemented day 3
Note that only part 1 has been implemented. The reasoning is on the file header. Moreover, we are not printing 24-bit results yet because that would entail modifying the somewhat terrifying vendor code on `vendor/bcd16.s`. Since this will be a recurring theme, I guess that I will have to come up with a solution sooner or later. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'test/utils.lua')
-rw-r--r--test/utils.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/utils.lua b/test/utils.lua
index c5ecd94..2cd713a 100644
--- a/test/utils.lua
+++ b/test/utils.lua
@@ -48,10 +48,9 @@ function utils.MemTest(label, addresses)
if expected == got then
io.write("OK\n")
else
- io.write("\n-> Test '".. label .."': FAIL\n")
+ io.write("FAIL\n")
io.write("Expected: ".. expected .. "\n")
io.write("Got: ".. got .. "\n")
- io.write("\n")
end
io.close(file)
end)