以下断言只是对整型数组进行比较,如需其它数据类型的比较则只需修改相应的数据类型;
/**
* Asserts that two int arrays are equal. If they are not an
* AssertionFailedError is thrown.
*/
static public void assertEquals(int[] expected, int[] actual )
{
for(int i = 0; i < expected.length; i++)
{
assertEquals(null, expected[i], actual[i]);
}
}
|