Browse Source

fixed : optional PosInfos

Nicolas Cannasse 19 years ago
parent
commit
80abee71f6
1 changed files with 3 additions and 3 deletions
  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 {
 	}
 
-	function assertTrue( b:Bool, c : PosInfos ) : Void {
+	function assertTrue( b:Bool, ?c : PosInfos ) : Void {
 		currentTest.done = true;
 		if (b == 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;
 		if (b == true){
 			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;
 		if (actual != expected){
 			currentTest.success = false;