Skip to content

Instantly share code, notes, and snippets.

@hikhvar
hikhvar / gist:3d180dc2d776ee2c33103c293ec4c37d
Created April 12, 2021 06:19
output of testify assert
christoph@thinkpad-sport ../GO/src/github.com/hikhvar/ts3exporter (git)-[master] % go test github.com/hikhvar/ts3exporter/pkg/serverquery
ok github.com/hikhvar/ts3exporter/pkg/serverquery (cached)
christoph@thinkpad-sport ../GO/src/github.com/hikhvar/ts3exporter (git)-[master] % vim pkg/serverquery/parser_test.go
christoph@thinkpad-sport ../GO/src/github.com/hikhvar/ts3exporter (git)-[master] % go test github.com/hikhvar/ts3exporter/pkg/serverquery
--- FAIL: TestParse (0.00s)
--- FAIL: TestParse/channellist (0.00s)
parser_test.go:65:
Error Trace: parser_test.go:65
Error: Not equal:
expected: serverquery.Result{Raw:"cid=1 pid=0 channel_name=Default\\sChannel|cid=8 pid=0 channel_name=Weiß\\snicht\\swie\\sman\\sTS\\sbeendet\\s(AFK)", Items:[]serverquery.Parsed{serverquery.Parsed{"channel_name":"Default Channel", "cid":"1", "pid":"1"}, serverquery.Parsed{"channel_name":"Weiß nicht wie man TS beendet (AFK)", "cid":"8", "pid":"0"}}}