Skip to content
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

Special character for testing #1

Open
yasuhito opened this issue Aug 4, 2022 · 2 comments
Open

Special character for testing #1

yasuhito opened this issue Aug 4, 2022 · 2 comments

Comments

@yasuhito
Copy link

yasuhito commented Aug 4, 2022

Looking at the source code of pico-test, it seems to use "⚡" to get the test output out of the printh() output, which is not printed correctly to the terminal (at least it was NG in my environment). According to the pico-8 wiki https://pico-8.fandom.com/wiki/P8SCII, "⚡" is not supported and other characters must be used. I tried using "✽" (Throwing star) and pico-test worked fine. Is it possible to replace "⚡" with "✽" (or another proper one)?

@mal2994
Copy link

mal2994 commented Feb 1, 2023

If it is working, it would be great for you to put the fix up on github. Just fork the repo. I cloned today and saw japanese characters instead of ⚡. I guess it should be a simple fix. If you have taken care of it, then I won't have to repeat that work.

INFO: ヌあく:test:math functions
INFO: ヌあく:desc:math.one()
INFO: ヌあく:it:should give 1
INFO: ヌあく:assert:true
INFO: ヌあく:it_end
INFO: ヌあく:test_end

@mal2994
Copy link

mal2994 commented Feb 5, 2023

If you're using Windows, it works well to use WSL2 and the Linux binary of Pico-8 with the headless parameter -x.

alias p8linux='/mnt/c/Users/YOURUSERNAMEHERE/Downloads/pico-8_0.2.5c_amd64_linux/pico-8/pico8'
p8linux -x test.p8 | node index

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants