This commit is contained in:
Dante
2026-05-22 11:54:15 -07:00
parent 05f197c291
commit b47ea35fe4
935 changed files with 1016163 additions and 1 deletions

View File

@ -0,0 +1,18 @@
import haxe.PosInfos;
class TestBase extends haxe.unit.TestCase
{
public function assertClose(inWant:Float, inGot:Float, ?c : PosInfos )
{
assertTrue( Math.abs(inWant-inGot) < 0.001, c );
}
public function assertEq<T>(inWant:T, inGot:T, ?c : PosInfos )
{
var same = inWant==inGot;
if (!same)
trace('Expected $inWant, got $inGot');
assertTrue(same, c);
}
}