如何提高 tSQLt 中 FLOAT 失败断言消息的精度?
例如
DECLARE @Expected FLOAT = -5.4371511392520810
PRINT STR(@Expected, 40, 20)
DECLARE @Actual FLOAT = @Expected - 0.0000000001
PRINT STR(@Actual, 40, 20)
EXEC tSQLt.AssertEquals @Expected, @Actual
给
-5.4371511392520810 -5.4371511393520811
[UnitTest].[test A] 失败:预期:<-5.43715> 但为:<-5.43715>