commit 2f25429a3d981b6081aa068e65295aea18a8b162
Author: jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Wed Mar 10 07:11:46 2021 -0700
Commit: jtothebell <j.to.the.bell@gmail.com>
CommitDate: Wed Mar 10 07:11:46 2021 -0700
Cleanup
---
cart.p8 | 277 ---------------------------------------------
inputtest.p8 | 28 -----
source/tests/cart_test.cpp | 238 --------------------------------------
source/tests/cart_test.h | 17 ---
source/tests/test_base.cpp | 42 -------
source/tests/test_base.h | 17 ---
6 files changed, 619 deletions(-)
diff --git a/cart.p8 b/cart.p8
deleted file mode 100644
index e9ee363..0000000
--- a/cart.p8
+++ /dev/null
@@ -1,277 +0,0 @@
-pico-8 cartridge // http://www.pico-8.com
-version 19
-__lua__
-local r1x0 = 10
-local r1y0 = 10
-local r1x1 = 50
-local r1y1 = 50
-local r1c = 2
-
-local r2x0 = 60
-local r2y0 = 60
-local r2x1 = 100
-local r2y1 = 100
-local r2c = 3
-
-local r1dx = .5
-local r1dy = 2
-
-local r2dx = 2
-local r2dy = 2
-
-local sprx = 40;
-local spry = 40;
-
-local sprn = 7;
-
-function _draw()
- cls()
-
- rectfill(0, 0, 127, 127, 0)
- map(0, 0, 0, 0, 3, 3)
- mset(2, 3, 3)
- mset(2, 4, 3)
- mset(2, 5, 3)
- map(0, 3, 0, 24, 3, 3)
- map(126, 62, 0, 48, 2, 2)
- pset(1, 80, 10)
- pset(1.99, 80, 10)
-
- print("abcdefghijklmnopqrstuvwxyz", 0, 0, 7)
-
- camera(-64, -64)
-
- -- draw a big red circle, centered
- circfill(0, 0, 10, 8)
-
- camera(0,0)
-
- rectfill(50, -1, 60, 10, 11)
-
- rectfill(r1x0, r1y0, r1x1, r1y1, r1c)
-
- rect(r2x0, r2y0, r2x1, r2y1, r2c)
-
- pset(40, 10, 13)
-
- line(120, 10, 120, 120, 14)
-
- line(0, 0, 20, 20, 15)
-
- line(0, 20, 20, 0, 15)
-
- line(20, 30, 0, 20, 12)
-
- line(0, 30, 20, 20, 12)
-
- circ(90, 90, 30, 8)
-
- circfill(100, 100, 15, 9)
-
- print("bitwise:1&3 " .. band(1,3), 64, 64, 7)
- print(fget(8, 3), 64, 72, 7)
- print(fget(255), 64, 80, 7)
-
- print(sget(59,5), 64, 88, 7)
- print(sget(60,6), 64, 96, 7)
- print(time(), 64, 104)
-
- pal(11, 10)
- palt(8, 1)
- spr(sprn, sprx, spry, 1, 1, false, false)
- palt()
-
- sspr(64, 0, 8, 8, 72, 48, 12, 20, false, false)
- pal()
-
- clip(0, 8, 128, 112)
- circfill(10, 118, 8, 8)
- clip()
- circfill(40, 118, 8, 7)
-
- spr(9, 64, 120)
- spr(9, 74, 120, 1, 1, true, false)
- spr(9, 84, 120, 1, 1, true, true)
- spr(9, 94, 120, 1, 1, false, true)
-
- pal(6, 14, 1)
-
- t = {1, 3}
- add(t, 5)
- foreach(t, print)
-end
-
-function _update60()
- if btn(0) then sprx = sprx - 2 end
- if btn(1) then sprx = sprx + 2 end
- if btn(2) then spry = spry - 2 end
- if btn(3) then spry = spry + 2 end
- if btnp(4) then
- local val = fget(8, 3)
- fset(8, 3, not val)
- sprn +=1
- sset(59,5, 8)
- end
- if btnp(5) then
- local val = fget(8, 3)
- fset(8, 3, not val)
- sprn -=1
- sset(60,6, 8)
- end
-
- if (r1x0 < 0 or r1x1 > 127) then
- r1dx = -1 * r1dx;
- end
- if (r1y0 < 0 or r1y1 > 127) then
- r1dy = -1 * r1dy;
- end
- if (r2x0 < 0 or r2x1 > 127) then
- r2dx = -1 * r2dx;
- end
- if (r2y0 < 0 or r2y1 > 127) then
- r2dy = -1 * r2dy;
- end
- r1x0 = r1dx + r1x0
- r1x1 = r1dx + r1x1
- r1y0 = r1dy + r1y0
- r1y1 = r1dy + r1y1
-end
-__gfx__
-f0000000000000000000000007700770000770000000000000000000000660005000000544911999000000000000000000000000000000000000000000000000
-00000000000000067000000078877887077777700500000000000050800660085005500544e11eee000000000000000000000000000000000000000000000000
-0070070000000006600000007888888707bbbb700500000000000050600550065055550544000000000000000000000000000000000000000000000000000000
-000770000000000660000000078888707bbbbbb705000000000000506005500655500555885552bb000000000000000000000000000000000000000000000000
-000770000000000660000000078888707bbbbbb705000005500000506006600655555555885552bb000000000000000000000000000000000000000000000000
-0070070000000066670000000078870007bbbb700500005555000050666cc66650b55b0544000000000000000000000000000000000000000000000000000000
-00000000008000666600080000077000077777700550055555500050666cc6665006600544fddfff000000000000000000000000000000000000000000000000
-0000000080d00065d6000d08000000000007700005555555555555500006600050000005443dd333000000000000000000000000000000000000000000000000
-0b00080060d0006556000d0600000000000000000550055665500550000000000000000000000000000000000000000000000000000000000000000000000000
-0b00080060ddd065560ddd0600000000000000000500005555000050000000000000000000000000000000000000000000000000000000000000000000000000
-0b000800600ddd6556ddd00600000000000000000500008558000050000000000000000000000000000000000000000000000000000000000000000000000000
-0b000800666666666666666600000000000000000500000000000050000000000000000000000000000000000000000000000000000000000000000000000000
-00000000666866666666666600000000000000000500000000000050000000000000000000000000000000000000000000000000000000000000000000000000
-000000000666666cc666666000000000000000000500000000000050000000000000000000000000000000000000000000000000000000000000000000000000
-000000000006666cc666600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000666600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003001
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000130
-__gff__
-0001020304050607080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000088ff
-__map__
-0102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000506
-1112040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001516
-0404040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-0506040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-1516040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-0404040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
diff --git a/inputtest.p8 b/inputtest.p8
deleted file mode 100644
index 7e04803..0000000
--- a/inputtest.p8
+++ /dev/null
@@ -1,28 +0,0 @@
-pico-8 cartridge // http://www.pico-8.com
-version 22
-__lua__
-function _update()
-
-end
-
-function _draw()
- cls()
- for i=0, 6, 1 do
- if(btn(i)) then
- print('btn ' .. i)
- end
- end
-
- for i=0, 6, 1 do
- if(btnp(i)) then
- print('btnp ' .. i)
- end
- end
-end
-__gfx__
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
diff --git a/source/tests/cart_test.cpp b/source/tests/cart_test.cpp
deleted file mode 100644
index ba91782..0000000
--- a/source/tests/cart_test.cpp
+++ /dev/null
@@ -1,238 +0,0 @@
-
-#include "test_base.h"
-
-#if _TEST
-
-#include <string>
-
-#include "cart_test.h"
-
-
-
-const char* full_cart_text = R"(pico-8 cartridge // http://www.pico-8.com
-version 18
-__lua__
-local r1x0 = 10
-local r1y0 = 10
-local r1x1 = 50
-local r1y1 = 50
-local r1c = 2
-
-local r2x0 = 60
-local r2y0 = 60
-local r2x1 = 100
-local r2y1 = 100
-local r2c = 3
-
-local r1dx = .5
-local r1dy = 2
-
-local r2dx = 2
-local r2dy = 2
-
-local sprx = 40;
-local spry = 40;
-
-local sprn = 7;
-
-function _draw()
- cls()
-
- rectfill(0, 0, 127, 127, 0)
-
- print("abcdefghijklmnopqrstuvwxyz", 0, 0, 7)
-
- rectfill(50, -1, 60, 10, 11)
-
- rectfill(r1x0, r1y0, r1x1, r1y1, r1c)
-
- rect(r2x0, r2y0, r2x1, r2y1, r2c)
-
- pset(40, 10, 13)
-
- line(120, 10, 120, 120, 14)
-
- line(0, 0, 20, 20, 15)
-
- line(0, 20, 20, 0, 15)
-
- line(20, 30, 0, 20, 12)
-
- line(0, 30, 20, 20, 12)
-
- circ(90, 90, 30, 8)
-
- circfill(100, 100, 15, 9)
-
- print("test str", 64, 64, 7)
-
- spr(sprn, sprx, spry, 1, 1, false, false)
-end
-
-function _update()
- if btn(0) then sprx = sprx - 2 end
- if btn(1) then sprx = sprx + 2 end
- if btn(2) then spry = spry - 2 end
- if btn(3) then spry = spry + 2 end
- if btnp(4) then sprn +=1 end
- if btnp(5) then sprn -=1 end
-
- if (r1x0 < 0 or r1x1 > 127) then
- r1dx = -1 * r1dx;
- end
- if (r1y0 < 0 or r1y1 > 127) then
- r1dy = -1 * r1dy;
- end
- if (r2x0 < 0 or r2x1 > 127) then
- r2dx = -1 * r2dx;
- end
- if (r2y0 < 0 or r2y1 > 127) then
- r2dy = -1 * r2dy;
- end
- r1x0 = r1dx + r1x0
- r1x1 = r1dx + r1x1
- r1y0 = r1dy + r1y0
- r1y1 = r1dy + r1y1
-end
-__gfx__
-e0000000000000000000000007700770000770000000000000000000000660005000000500000000000000000000000000000000000000000000000000000000
-00000000000000067000000078877887077777700500000000000050800660085005500500000000000000000000000000000000000000000000000000000000
-0070070000000006600000007888888707bbbb700500000000000050600550065055550500000000000000000000000000000000000000000000000000000000
-000770000000000660000000078888707bbbbbb70500000000000050600550065550055500000000000000000000000000000000000000000000000000000000
-000770000000000660000000078888707bbbbbb70500000550000050600660065555555500000000000000000000000000000000000000000000000000000000
-0070070000000066670000000078870007bbbb700500005555000050666cc66650b55b0500000000000000000000000000000000000000000000000000000000
-00000000008000666600080000077000077777700550055555500050666cc6665006600500000000000000000000000000000000000000000000000000000000
-0000000080d00065d6000d0800000000000770000555555555555550000660005000000500000000000000000000000000000000000000000000000000000000
-0b00080060d0006556000d0600000000000000000550055665500550000000000000000000000000000000000000000000000000000000000000000000000000
-0b00080060ddd065560ddd0600000000000000000500005555000050000000000000000000000000000000000000000000000000000000000000000000000000
-0b000800600ddd6556ddd00600000000000000000500008558000050000000000000000000000000000000000000000000000000000000000000000000000000
-0b000800666666666666666600000000000000000500000000000050000000000000000000000000000000000000000000000000000000000000000000000000
-00000000666866666666666600000000000000000500000000000050000000000000000000000000000000000000000000000000000000000000000000000000
-000000000666666cc666666000000000000000000500000000000050000000000000000000000000000000000000000000000000000000000000000000000000
-000000000006666cc666600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000666600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-)";
-
-bool verifyFullCartText(std::string cartText){
- return assertStringsEqual(full_cart_text, cartText, "Full Cart Text");
-}
-
-bool verifyCart(Cart* cart){
- bool valid = true;
- valid &= verifyLuaText(cart->LuaString);
- valid &= verifySpriteSheetText(cart->SpriteSheetString);
- return valid;
-}
-
-const char* expected_lua_text = R"(local r1x0 = 10
-local r1y0 = 10
-local r1x1 = 50
-local r1y1 = 50
-local r1c = 2
-
-local r2x0 = 60
-local r2y0 = 60
-local r2x1 = 100
-local r2y1 = 100
-local r2c = 3
-
-local r1dx = .5
-local r1dy = 2
-
-local r2dx = 2
-local r2dy = 2
-
-local sprx = 40;
-local spry = 40;
-
-local sprn = 7;
-
-function _draw()
- cls()
-
- rectfill(0, 0, 127, 127, 0)
-
- print("abcdefghijklmnopqrstuvwxyz", 0, 0, 7)
-
- rectfill(50, -1, 60, 10, 11)
-
- rectfill(r1x0, r1y0, r1x1, r1y1, r1c)
-
- rect(r2x0, r2y0, r2x1, r2y1, r2c)
-
- pset(40, 10, 13)
-
- line(120, 10, 120, 120, 14)
-
- line(0, 0, 20, 20, 15)
-
- line(0, 20, 20, 0, 15)
-
- line(20, 30, 0, 20, 12)
-
- line(0, 30, 20, 20, 12)
-
- circ(90, 90, 30, 8)
-
- circfill(100, 100, 15, 9)
-
- print("test str", 64, 64, 7)
-
- spr(sprn, sprx, spry, 1, 1, false, false)
-end
-
-function _update()
- if btn(0) then sprx = sprx - 2 end
- if btn(1) then sprx = sprx + 2 end
- if btn(2) then spry = spry - 2 end
- if btn(3) then spry = spry + 2 end
- if btnp(4) then sprn = sprn + 1 end
- if btnp(5) then sprn = sprn - 1 end
-
- if (r1x0 < 0 or r1x1 > 127) then
- r1dx = -1 * r1dx;
- end
- if (r1y0 < 0 or r1y1 > 127) then
- r1dy = -1 * r1dy;
- end
- if (r2x0 < 0 or r2x1 > 127) then
- r2dx = -1 * r2dx;
- end
- if (r2y0 < 0 or r2y1 > 127) then
- r2dy = -1 * r2dy;
- end
- r1x0 = r1dx + r1x0
- r1x1 = r1dx + r1x1
- r1y0 = r1dy + r1y0
- r1y1 = r1dy + r1y1
-end
-
-)";
-
-bool verifyLuaText(std::string luaText){
- return assertStringsEqual(expected_lua_text, luaText, "Lua Text");
-}
-
-const char* expected_spritesheet_text = R"(e0000000000000000000000007700770000770000000000000000000000660005000000500000000000000000000000000000000000000000000000000000000
-00000000000000067000000078877887077777700500000000000050800660085005500500000000000000000000000000000000000000000000000000000000
-0070070000000006600000007888888707bbbb700500000000000050600550065055550500000000000000000000000000000000000000000000000000000000
-000770000000000660000000078888707bbbbbb70500000000000050600550065550055500000000000000000000000000000000000000000000000000000000
-000770000000000660000000078888707bbbbbb70500000550000050600660065555555500000000000000000000000000000000000000000000000000000000
-0070070000000066670000000078870007bbbb700500005555000050666cc66650b55b0500000000000000000000000000000000000000000000000000000000
-00000000008000666600080000077000077777700550055555500050666cc6665006600500000000000000000000000000000000000000000000000000000000
-0000000080d00065d6000d0800000000000770000555555555555550000660005000000500000000000000000000000000000000000000000000000000000000
-0b00080060d0006556000d0600000000000000000550055665500550000000000000000000000000000000000000000000000000000000000000000000000000
-0b00080060ddd065560ddd0600000000000000000500005555000050000000000000000000000000000000000000000000000000000000000000000000000000
-0b000800600ddd6556ddd00600000000000000000500008558000050000000000000000000000000000000000000000000000000000000000000000000000000
-0b000800666666666666666600000000000000000500000000000050000000000000000000000000000000000000000000000000000000000000000000000000
-00000000666866666666666600000000000000000500000000000050000000000000000000000000000000000000000000000000000000000000000000000000
-000000000666666cc666666000000000000000000500000000000050000000000000000000000000000000000000000000000000000000000000000000000000
-000000000006666cc666600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-00000000000000666600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-)";
-
-bool verifySpriteSheetText(std::string spritesheet) {
- return assertStringsEqual(expected_spritesheet_text, spritesheet, "Spritesheet Text");
-}
-
-#endif
diff --git a/source/tests/cart_test.h b/source/tests/cart_test.h
deleted file mode 100644
index 912a846..0000000
--- a/source/tests/cart_test.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#include "test_base.h"
-
-#if _TEST
-
-#pragma once
-
-#include <string>
-
-#include "../cart.h"
-
-bool verifyFullCartText(std::string cartText);
-
-bool verifyCart(Cart* cart);
-bool verifyLuaText(std::string luaText);
-bool verifySpriteSheetText(std::string spritesheet);
-
-#endif
diff --git a/source/tests/test_base.cpp b/source/tests/test_base.cpp
deleted file mode 100644
index a338af8..0000000
--- a/source/tests/test_base.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-#include "test_base.h"
-
-#if _TEST
-
-
-#include <string>
-#include <sstream>
-
-#include "../logger.h"
-
-bool assertStringsEqual(std::string expected, std::string actual, std::string testName){
- bool equal = expected == actual;
- printTestOuput(testName, equal);
-
- if (!equal){
- Logger_Write("start expected: \n");
- Logger_Write(expected.c_str());
- Logger_Write("end expected: \n");
-
- Logger_Write("start actual: \n");
- Logger_Write(actual.c_str());
- Logger_Write("end actual: \n");
- }
-
- return equal;
-}
-
-void printTestOuput(std::string testName, bool success) {
- #if _PRINT_SUCCESS
- bool print = true;
- #else
- bool print = !success;
- #endif
-
- if (print) {
- std::stringstream output;
- std::string status = success ? "PASS" : "FAIL";
- output << testName << ": " << status << "\n";
- printf(output.str().c_str());
- }
-}
-#endif
\ No newline at end of file
diff --git a/source/tests/test_base.h b/source/tests/test_base.h
deleted file mode 100644
index 8b517e2..0000000
--- a/source/tests/test_base.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#pragma once
-
-//if this is set to 1, test cases will be run on the test cart
-#define _TEST 0
-
-//if this flag is set, only failures get printed to console
-#define _PRINT_SUCCESS 1
-
-#if _TEST
-
-#include <string>
-
-bool assertStringsEqual(std::string expected, std::string actual, std::string testName);
-
-void printTestOuput(std::string testName, bool success);
-
-#endif
\ No newline at end of file