Add call to find main class.

This commit is contained in:
Juraj Kirchheim
2019-05-07 22:42:39 +02:00
parent 9018b06279
commit d90fb966d2
3 changed files with 24 additions and 0 deletions

10
tests/Misc.hx Normal file
View File

@@ -0,0 +1,10 @@
import tink.MacroApi;
import haxe.unit.TestCase;
using tink.CoreApi;
class Misc extends TestCase {
function testMain() {
assertEquals('Run', MacroApi.getMainClass().force());
}
}

View File

@@ -12,6 +12,7 @@ class Run {
new Types(),
new Positions(),
new TypeMapTest(),
new Misc(),
];
#end
macro static function test() {