Fix indenting.

This commit is contained in:
Juraj Kirchheim
2016-04-14 13:54:26 +02:00
parent df01d82300
commit c0b562af31
17 changed files with 1387 additions and 1387 deletions

View File

@@ -3,27 +3,27 @@ package ;
import haxe.unit.*;
class Run {
#if !macro
static function main()
test();//It compiles ...
#else
static var cases:Array<TestCase> = [
new Exprs(),
new Types(),
new Positions(),
];
#end
macro static function test() {
var runner = new TestRunner();
tink.macro.ClassBuilder;
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!');
}
}
#if !macro
static function main()
test();//It compiles ...
#else
static var cases:Array<TestCase> = [
new Exprs(),
new Types(),
new Positions(),
];
#end
macro static function test() {
var runner = new TestRunner();
tink.macro.ClassBuilder;
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!');
}
}
}