So, I don't even know where to start with this one. This whole fiasco began over eight hours ago, jerry rigging my way out of one issue after another. Now, this:
And it gets even better, after clicking "Click to see difference":
I have:
- Invalidated caches and restarted IntelliJ
- Attempted running where Double[] numSet = {23.0};
and then setting the expected result to numSet
rather than "[23.0]"
. No dice.
- The answer regarding adding a delta didn't work: JUnit test fails even if the expected result is correct
I feel it is also worth noting that the error supposedly occuring at line 48 does not show up when calling the method from the main class, so I have no clue as to what that might be about.
Any help will be appreciated.
Here is the code for the method being tested. Almost forgot it:
public List<Object> trimNumberSet(Double[] numSet) {
List<Object> trimmedNumberSet = new ArrayList<>();
for (int i = 0; i < numSet.length; i++) {
if (numSet[i] != null) {
trimmedNumberSet.add(numSet[i]);
}
}
return trimmedNumberSet;
}