Skip to content

Language Haxe

kazk edited this page May 5, 2020 · 7 revisions

Status

Beta

Versions

4.0

Test Frameworks

utest

Example

src/Example.hx

class Example {
  public static function add(a:Int, b:Int):Int {
    return a + b;
  }
}

tests/ExampleTest.hx

import utest.Assert;

class ExampleTest extends utest.Test {
  function testExample() {
    Assert.equals(Example.add(1, 1), 2);
  }
}

The optional preloaded code is a separate module that you can import.

Timeout

12 seconds

Packages

None

Services

None

Clone this wiki locally