SimonRichardson / funk

Haxe FP Library
Other
35 stars 5 forks source link
"HELLO WORLD" == "dlrow olleh".toList().map(_.toUpperCase).reduceRight(_.plus_).get()

Build status

Development Neko build failure issue Build Status

Introduction

The Funk library supports functional development in Haxe. Some of its key features are:

Building

The Funk library doesn't not necessarily build anything as it's a library. So the idea is to import those into your project, which you can do in the following ways.

Haxelib - Stable Release

Haxelib - Beta Release (aka Git release)

Commando styleé (unsupported)

More information about building can be found here using_haxelib

Testing

Setup

The Funk library is unit tested with munit testing library for more information refer to the guide. Suffice it to say you'll need to install munit via haxelib

Unit testing

Once that's in installed (installs other dependencies) you can then run the tests by calling the following command from the root directory.

haxelib run munit test -nogen -js -as3

Note: There is an issue building neko so the ci server is also down, once this has been rectified then I'll post commands to get this also running.

Coverage

Alternatively you can also run full coverage as well, to help see what tests are covering what.

haxelib run munit test -nogen -coverage -js -as3

Note: Actor coverage is really low and needs to be updated.