title: Handling Doubles in ScalaTest
body: <p>I have just started using ScalaTest and I am using the following to compare two Doubles in my spec as follows:</p>
  
  <pre><code>  it should "calculate the price" in {
      val x = new X(10,10,12,1000)
      assert(x.price() === 185.92)
    }
  </code></pre>
  
  <p>The spec is passing even though I have put in a wrong value of 185.92 to compare against what the price function is returning (that actually returns 10.23 for the case above). I have other specs where I just compare <code>Ints</code> and they work as expected. But the ones involving <code>Doubles</code> are passing regardless. Is there another functions besides <code>assert</code> I should be using to compare <code>Doubles</code>?</p>
  
  <p>EDIT:</p>
  
  <pre><code>def price () : Double
  </code></pre>