Skip to content

Enhanced skip ocode tests #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions bin/3-corax+.8o
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
v5 := 42
v6 := 43
drawop im3 imX
i := image-ok
i := image-no
if v6 != 42 then i := image-ok
if v6 != 43 then i := image-no
sprite x2 y 4

Expand All @@ -79,15 +80,17 @@
drawop im4 imX
i := image-no
if v5 == 42 then i := image-ok
if v5 == 43 then i := image-no
sprite x2 y 4

#################
# Test 5xy0

y := 11
drawop im5 imX
i := image-no
i := image-no
if v5 != v6 then i := image-ok
if v5 != v5 then i := image-no
sprite x2 y 4

#################
Expand All @@ -107,6 +110,7 @@
drawop im9 imX
i := image-no
if v5 == v6 then i := image-ok
if v5 == vb then i := image-no
sprite x2 y 4

#################
Expand Down
Binary file modified bin/3-corax+.ch8
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/3-corax+.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Timendus' CHIP-8 Test Suite",
"scripts": {
"start": "npm run scale-splash && npm run build-tests",
"scale-splash": "ffmpeg -y -i pictures/splash.png -vf scale=96:-1 -sws_flags neighbor pictures/splash2x.png",
"scale-splash": "ffmpeg -y -i pictures/splash.png -vf scale=96:-1 -sws_flags neighbor -update true pictures/splash2x.png",
"build-tests": "for TEST in ./src/tests/*.8o; do export TEST=`basename ${TEST%.*}`; npm run build-test; done",
"build-test": "echo \"Building ${TEST}.ch8\" && octopus src/tests/${TEST}.8o bin/${TEST}.8o && octo bin/${TEST}.8o bin/${TEST}.ch8 && octo --options octo-config.json bin/${TEST}.8o docs/${TEST}.html && cat bin/${TEST}.8o | pbcopy"
},
Expand Down
Binary file modified pictures/splash2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions src/tests/3-corax+.8o
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
v5 := 42
v6 := 43
drawop im3 imX
i := image-ok
i := image-no
if v6 != 42 then i := image-ok
if v6 != 43 then i := image-no
sprite x2 y 4

Expand All @@ -79,15 +80,17 @@
drawop im4 imX
i := image-no
if v5 == 42 then i := image-ok
if v5 == 43 then i := image-no
sprite x2 y 4

#################
# Test 5xy0

y := 11
drawop im5 imX
i := image-no
i := image-no
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whitespace change

if v5 != v6 then i := image-ok
if v5 != v5 then i := image-no
sprite x2 y 4

#################
Expand All @@ -107,6 +110,7 @@
drawop im9 imX
i := image-no
if v5 == v6 then i := image-ok
if v5 == vb then i := image-no
sprite x2 y 4

#################
Expand Down