Created
April 12, 2021 06:19
-
-
Save hikhvar/3d180dc2d776ee2c33103c293ec4c37d to your computer and use it in GitHub Desktop.
output of testify assert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"}}} | |
actual : 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":"0"}, serverquery.Parsed{"channel_name":"Weiß nicht wie man TS beendet (AFK)", "cid":"8", "pid":"0"}}} | |
Diff: | |
--- Expected | |
+++ Actual | |
@@ -6,3 +6,3 @@ | |
(string) (len=3) "cid": (string) (len=1) "1", | |
- (string) (len=3) "pid": (string) (len=1) "1" | |
+ (string) (len=3) "pid": (string) (len=1) "0" | |
}, | |
Test: TestParse/channellist | |
FAIL | |
FAIL github.com/hikhvar/ts3exporter/pkg/serverquery 0.003s | |
FAIL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment