Browse Source

Explicitly fail if no exceptions thrown in `File.copy` test for non-existent files

Alexander Kuzmenko 6 năm trước cách đây
mục cha
commit
959967839e
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      tests/sys/src/io/TestFile.hx

+ 2 - 0
tests/sys/src/io/TestFile.hx

@@ -27,6 +27,8 @@ class TestFile extends utest.Test {
 		} catch(e:Dynamic) {
 			//see https://github.com/HaxeFoundation/haxe/issues/8098
 			Assert.pass();
+			return;
 		}
+		Assert.fail();
 	}
 }