TestNG Version
7.4.0
Expected behavior
- Either: Documentation for
Assert.assertEqualsNoOrder should say that array elements are not compared deeply
- Or:
assertEqualsNoOrder should compare the array arguments deeply (i.e. compare nested array elements as well)
Actual behavior
assertEqualsNoOrder only compares array elements at the first nesting depth, but for deeper nesting depths arrays are compared by reference.
Test case sample
String[][] expected = {{}};
String[][] actual = {{}};
// EXPECTED: No exception
// ACTUAL: AssertionError
org.testng.Assert.assertEqualsNoOrder(actual, expected);
TestNG Version
7.4.0
Expected behavior
Assert.assertEqualsNoOrdershould say that array elements are not compared deeplyassertEqualsNoOrdershould compare the array arguments deeply (i.e. compare nested array elements as well)Actual behavior
assertEqualsNoOrderonly compares array elements at the first nesting depth, but for deeper nesting depths arrays are compared by reference.Test case sample