Created
May 13, 2017 04:53
-
-
Save z3t0/58dd5167a16fcbe2f32013ae5b436bd7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| func TestInfo(t *testing.T) { | |
| var information = Info() | |
| fmt.Println(information) | |
| // returns | |
| // "Haxel Server Started..." | |
| // "0.0.1" | |
| if information == "Haxel Server Started ..." {// this should fail.... | |
| t.Error("Expected info, got", information) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment