title: JUnit test failing but showing identical Expected and Actual results
body: <p>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:
  <img src="https://i.stack.imgur.com/BisMM.jpg" alt="Junit test failing, with passing results">
  And it gets even better, after clicking "Click to see difference":
  <img src="https://i.stack.imgur.com/sAY6M.jpg" alt="enter image description here"></p>
  
  <p>I have:<br />
  - Invalidated caches and restarted IntelliJ <br />
  - Attempted running where <code>Double[] numSet = {23.0};</code> and then setting the expected result to <code>numSet</code> rather than <code>"[23.0]"</code>. No dice. <br />
  - The answer regarding adding a delta didn't work: <a href="https://stackoverflow.com/questions/20534953/junit-test-fails-even-if-the-expected-result-is-correct">JUnit test fails even if the expected result is correct</a></p>
  
  <p>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.</p>
  
  <p>Any help will be appreciated.</p>
  
  <p>Here is the code for the method being tested. Almost forgot it:</p>
  
  <pre><code>public List&lt;Object&gt; trimNumberSet(Double[] numSet) {
      List&lt;Object&gt; trimmedNumberSet = new ArrayList&lt;&gt;();
  
      for (int i = 0; i &lt; numSet.length; i++) {
          if (numSet[i] != null) {
              trimmedNumberSet.add(numSet[i]);
          }
      }
      return trimmedNumberSet;
  }
  </code></pre>