How to compare case classes with floating numbers in Scalatest?

Solution for How to compare case classes with floating numbers in Scalatest?
is Given Below:

Can you compare two objects that have floating numbers in field or values of maps, without manually comparing each field; i.e., enforce tolerance whenever floats or doubles are encountered using custom matchers and Scala generics?