stretchr/testify

Equal diff prints uints in hex format

Open

#400 opened on 2017年2月14日

GitHub で見る
 (5 comments) (13 reactions) (0 assignees)Go (1,704 forks)batch import
assert.EqualValuesenhancementenhancement: output formathelp wantedpkg-assertrevisit

Repository metrics

Stars
 (25,958 stars)
PR merge metrics
 (平均マージ 6d 15h) (30d で 2 merged PRs)

説明

Equal and EqualValues print uints in hex format when showing diff. It would be much more useful to see 1701, instead of 0x6a5.

Error Trace:    equality_test:34
        Error:          Not equal:
                        expected: float64(1700)
                        received: uint(0x6a5)
        Messages:       Expecting prices to be equal

コントリビューターガイド