Sfoglia il codice sorgente

Change type of assertEquals

Pascal Peridont 19 anni fa
parent
commit
3ff81c6381
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;