Assert: check both relative and absolute error when comparing floats
Assert: fixed comparison of INF and NAN