Skip to content

Commit

Permalink
Fix failing unit test in other_types_test.go
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
mfielding authored Sep 20, 2024
1 parent 7d718a2 commit e750745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/converters/other_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestBinaryFloat(t *testing.T) {
},
{
[]byte{60, 249, 140, 204},
-134.45,
-134.44,
},
}

Expand Down

0 comments on commit e750745

Please sign in to comment.