actual = arrayOf(6, -8, 8);
arraysWithCustomComparisonStrategy.assertContainsExactly(someInfo(), actual, arrayOf(6d, -8d, 8d));
}
@Test
public void should_pass_if_actual_contains_given_values_exactly_in_different_order_according_to_custom_comparison_strategy() {
<BUG>AssertionInfo info = someInfo();</BUG>
double[] expected = { -6d, 10d, 8d };
<BUG>try {
arraysWithCustomComparisonStrategy.assertContainsExactly(someInfo(), actual, expected);
} catch (AssertionError e) {
verify(failures).failure(info, elementsDifferAtIndex(8d, 10d, 1, absValueComparisonStrategy));
return;
}
failBecauseExpectedAssertionErrorWasNotThrown();</BUG>
}

actual = arrayOf(6, -8, 8);
arraysWithCustomComparisonStrategy.assertContainsExactly(someInfo(), actual, arrayOf(6d, -8d, 8d));
}
@Test
public void should_pass_if_actual_contains_given_values_exactly_in_different_order_according_to_custom_comparison_strategy() {
double[] expected = { -6d, 10d, 8d };
thrown.expectAssertionError(elementsDifferAtIndex(8d, 10d, 1, absValueComparisonStrategy));
arraysWithCustomComparisonStrategy.assertContainsExactly(someInfo(), actual, expected);
}
