use expect_near instead of eq for double/float