Resolves #12. Resolves #18.

This commit is contained in:
Juraj Kirchheim
2020-04-24 15:38:51 +02:00
parent e3bac681ce
commit acb7237ae4
2 changed files with 52 additions and 50 deletions

View File

@@ -3,8 +3,8 @@ package ;
import haxe.unit.*;
class Run {
#if !macro
static function main()
#if !macro
static function main()
test();//It compiles ...
#else
static var cases:Array<TestCase> = [
@@ -19,12 +19,13 @@ class Run {
macro static function test() {
var runner = new TestRunner();
tink.macro.ClassBuilder;
tink.macro.BuildCache;
for (c in cases)
runner.add(c);
runner.run();
if (!runner.result.success)
haxe.macro.Context.error(runner.result.toString(), haxe.macro.Context.currentPos());
return macro {
trace('Let\'s ship it!');
}