浏览代码

Change type of assertEquals

Pascal Peridont 19 年之前
父节点
当前提交
3ff81c6381
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;