소스 검색

fixed : optional PosInfos

Nicolas Cannasse 19 년 전
부모
커밋
80abee71f6
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      std/haxe/unit/TestCase.hx

+ 3 - 3
std/haxe/unit/TestCase.hx

@@ -37,7 +37,7 @@ class TestCase #if mt_build implements mt.Protect #end {
 	public function tearDown() : Void {
 	public function tearDown() : Void {
 	}
 	}
 
 
-	function assertTrue( b:Bool, c : PosInfos ) : Void {
+	function assertTrue( b:Bool, ?c : PosInfos ) : Void {
 		currentTest.done = true;
 		currentTest.done = true;
 		if (b == false){
 		if (b == false){
 			currentTest.success = false;
 			currentTest.success = false;
@@ -47,7 +47,7 @@ class TestCase #if mt_build implements mt.Protect #end {
 		}
 		}
 	}
 	}
 
 
-	function assertFalse( b:Bool, c : PosInfos ) : Void {
+	function assertFalse( b:Bool, ?c : PosInfos ) : Void {
 		currentTest.done = true;
 		currentTest.done = true;
 		if (b == true){
 		if (b == true){
 			currentTest.success = false;
 			currentTest.success = false;
@@ -57,7 +57,7 @@ class TestCase #if mt_build implements mt.Protect #end {
 		}
 		}
 	}
 	}
 
 
-	function assertEquals<T>( expected: T , actual: T,  c : PosInfos ) : Void 	{
+	function assertEquals<T>( expected: T , actual: T,  ?c : PosInfos ) : Void 	{
 		currentTest.done = true;
 		currentTest.done = true;
 		if (actual != expected){
 		if (actual != expected){
 			currentTest.success = false;
 			currentTest.success = false;