Functions and unit testing

Pixilang programming language
Post Reply
maks
Posts: 43
Joined: Sat Mar 26, 2022 4:28 am

Functions and unit testing

Post by maks »

Hi all,

I recently discovered that Pixilang actually has support for higher order functions! It took me a while to realise as it was shown in the docs code examples, but not really spelled out or highlighted in the docs, which is a bit of a shame for what I think is such a useful feature! Even though closures aren't supported, its a very powerful feature! (thank you Alexander!)

Having found it, I immediately put it to use in making myself a very minimal unit test framework (as I'd missed having this coming from other C-like langs like Dart, Kotlin, JS etc).

Its in a git repo, here is a basic example using it:
https://github.com/maks/pixilib/blob/ma ... tests.pixi

I'm hoping to add other useful small Pixilang libs to that pixilib repo in the future. I've released it under the same MIT license that Pixilang uses.

Hopefully others may find it useful and pull-requests are always welcome :)
Post Reply