소스 검색

complicate a bit

Dan Korostelev 4 년 전
부모
커밋
2d40f3e7ab
4개의 변경된 파일9개의 추가작업 그리고 11개의 파일을 삭제
  1. 2 2
      tests/misc/coroutines/build.hxml
  2. 5 0
      tests/misc/coroutines/src/Main.hx
  3. 0 9
      tests/misc/coroutines/src/TestStaticFields.hx
  4. 2 0
      tests/misc/coroutines/src/import.hx

+ 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;