pico-test icon indicating copy to clipboard operation
pico-test copied to clipboard

Special character for testing

Open yasuhito opened this issue 2 years ago • 2 comments

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)?

yasuhito avatar Aug 04 '22 00:08 yasuhito

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 avatar Feb 01 '23 01:02 mal2994

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

mal2994 avatar Feb 05 '23 00:02 mal2994