Auroriax / PuzzleScriptPlus

Puzzlescript Plus: Open Source HTML5 Puzzle Game Engine (with lots of extra functionality)
https://auroriax.github.io/PuzzleScript/
34 stars 4 forks source link

Fix to support 4 hex digit colours #92

Closed david-pfx closed 1 year ago

david-pfx commented 1 year ago

Test program for all colours Issue #65

Auroriax commented 1 year ago

Quick review:

david-pfx commented 1 year ago

The test program is not a test case, it's just a program to run. I still don't know how to turn it into a test case, I just included it for interest. The test program is supposed to fail on standard PS+ and pass once the PR is applied. Is that what you found? I did not find any other changes were needed, just the regexes.

Auroriax commented 1 year ago

Sorry for the late reply!

Seems like I judged too quickly, and the code does work for object in in your test project. (Not sure what I did wrong but my fault, oops!)

(RE: how to generate tests, in the PS dev readme there are instructions on how to generate tests, but basically, you press Ctrl+J in-editor then follow the instructions there).

I've manually merged this fix and added the colors test to the test cases. So I'll close the PR, but the changes are in PS+.

Thanks!

david-pfx commented 1 year ago

No probs. That was just a dry run! I really feel the need for a better test framework, but for now it'll dew.