Răsfoiți Sursa

complicate a bit

Dan Korostelev 4 ani în urmă
părinte
comite
2d40f3e7ab

+ 2 - 2
tests/misc/coroutines/build.hxml

@@ -1,5 +1,5 @@
---class-path .
+--class-path src
 --library utest
---main Test
+--main Main
 --js test.js
 --cmd node test.js

+ 5 - 0
tests/misc/coroutines/src/Main.hx

@@ -0,0 +1,5 @@
+function main() {
+	utest.UTest.run([
+		new TestStaticFields(),
+	]);
+}

+ 0 - 9
tests/misc/coroutines/Test.hx → tests/misc/coroutines/src/TestStaticFields.hx

@@ -1,6 +1,3 @@
-import utest.Assert;
-import utest.Async;
-
 class TestStaticFields extends utest.Test {
 	function testSimpleStart(async:Async) {
 		simple.start(42, result -> {
@@ -20,10 +17,4 @@ class TestStaticFields extends utest.Test {
 	@:coroutine static function simple(arg:Int):Int {
 		return arg;
 	}
-}
-
-function main() {
-	utest.UTest.run([
-		new TestStaticFields(),
-	]);
 }

+ 2 - 0
tests/misc/coroutines/src/import.hx

@@ -0,0 +1,2 @@
+import utest.Assert;
+import utest.Async;