mirror of
https://github.com/irmen/prog8.git
synced 2025-01-12 04:30:03 +00:00
moved test programs to test folder in compiler module
This commit is contained in:
parent
2b267b4ba1
commit
7f21d89fea
13
compiler/test/arithmetic/Makefile
Normal file
13
compiler/test/arithmetic/Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
.PHONY: all clean test
|
||||
|
||||
all: test
|
||||
|
||||
clean:
|
||||
rm -f *.prg *.asm *.vice-*
|
||||
|
||||
test: clean
|
||||
p8compile *.p8 >/dev/null
|
||||
for program in *.prg; do \
|
||||
echo "RUNNING:" $$program ; \
|
||||
x64sc $$program >/dev/null ; \
|
||||
done
|
@ -174,14 +174,18 @@ def gen_comp_equal(dt):
|
||||
gen_test(dt, "==", maxval, maxval-1, False)
|
||||
|
||||
|
||||
def gen_comp_notequal(dt):
|
||||
minval, maxval = minmaxvalues(dt)
|
||||
def gen_comp_header(dt):
|
||||
print(" ; tests: ", dt, "!=")
|
||||
print(" comparison = \"!=\"")
|
||||
print(" txt.print(datatype)")
|
||||
print(" txt.spc()")
|
||||
print(" txt.print(comparison)")
|
||||
print(" txt.nl()")
|
||||
|
||||
|
||||
def gen_comp_notequal(dt):
|
||||
minval, maxval = minmaxvalues(dt)
|
||||
gen_comp_header(dt)
|
||||
gen_test(dt, "!=", 0, 0, False)
|
||||
gen_test(dt, "!=", 0, 1, True)
|
||||
gen_test(dt, "!=", 100, 100, False)
|
@ -2,8 +2,9 @@
|
||||
TODO
|
||||
====
|
||||
|
||||
- fix imageviewer only showing first image
|
||||
- fix errors in comparison changes
|
||||
- fix errors in comparison changes (first complete the new comparison test generation tool)
|
||||
- fix imageviewer only showing first image (likely fixed by the one above)
|
||||
- fix X register (evalstack) issue in arithmetic/builtins.prg
|
||||
- add cx16 vload()
|
||||
|
||||
- optimize several inner loops in gfx2
|
||||
|
Loading…
x
Reference in New Issue
Block a user