Prechádzať zdrojové kódy

Change type of assertEquals

Pascal Peridont 19 rokov pred
rodič
commit
3ff81c6381
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      std/haxe/unit/TestCase.hx

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

@@ -57,7 +57,7 @@ class TestCase {
 		}
 	}
 
-	function assertEquals( expected: Dynamic, actual: Dynamic,  c : PosInfos ) : Void 	{
+	function assertEquals<T>( expected: T , actual: T,  c : PosInfos ) : Void 	{
 		currentTest.done = true;
 		if (actual != expected){
 			currentTest.success = false;