Prechádzať zdrojové kódy

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

Alexander Kuzmenko 6 rokov pred
rodič
commit
959967839e
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  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();
 	}
 }