Debian Patches

Status for golang-github-alexflint-go-arg/1.3.0+ds-3

Patch Description Author Forwarded Bugs Origin Last update
0001_fix_tests_with_stretchr-testify_1.9.0.patch Fix TestFloat and TestMixed with stretchr/testify v1.9.0 golang.org/stretchr/testify v1.9.0 breaks float comparisons with
EqualValues (see https://github.com/stretchr/testify/issues/1576)
and leads to the following test errors in go-arg:
.
--- FAIL: TestFloat (0.00s)
parse_test.go:115:
Error Trace: /home/foka/debian/go-team/alexflint/golang-github-alexflint-go-arg/parse_test.go:115
Error: Not equal:
expected: float64(3.4)
actual : float32(3.4)
Test: TestFloat
--- FAIL: TestMixed (0.00s)
parse_test.go:172:
Error Trace: /home/foka/debian/go-team/alexflint/golang-github-alexflint-go-arg/parse_test.go:172
Error: Not equal:
expected: float64(1.2)
actual : float32(1.2)
Test: TestMixed
FAIL
FAIL github.com/alexflint/go-arg 0.013s
FAIL
.
Switching from float32 to float64 fixes the tests whether stretchr/testify
v1.9.0 or an older version is used.
Anthony Fok <foka@debian.org> no vendor 2024-05-02

All known versions for source package 'golang-github-alexflint-go-arg'

Links