From e75074594577bb91fc4b72f77fcb9fe7ca858f42 Mon Sep 17 00:00:00 2001 From: Marc Fielding Date: Fri, 20 Sep 2024 14:59:25 -0400 Subject: [PATCH] Fix failing unit test in other_types_test.go The test `github.com/sijms/go-ora/v2/converters/generatefloat` is failing for me: ``` ~/git/static/go-ora/v2/converters$ go clean -testcache && go test --- FAIL: TestBinaryFloat (0.00s) other_types_test.go:32: expected -134.45, got -134.44 FAIL exit status 1 FAIL github.com/sijms/go-ora/v2/converters 0.033s ``` This change updates the expected value, causing the test to succeed: ``` ~/git/static/go-ora/v2/converters$ go clean -testcache && go test PASS ok github.com/sijms/go-ora/v2/converters 0.033s ``` --- v2/converters/other_types_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/converters/other_types_test.go b/v2/converters/other_types_test.go index 5f7af53..79d3ef2 100644 --- a/v2/converters/other_types_test.go +++ b/v2/converters/other_types_test.go @@ -22,7 +22,7 @@ func TestBinaryFloat(t *testing.T) { }, { []byte{60, 249, 140, 204}, - -134.45, + -134.44, }, }