Last active
August 15, 2019 20:07
-
-
Save grantseltzer/4cce7fe0d1a75af83bca12bbd5f7e6a2 to your computer and use it in GitHub Desktop.
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
package switchers | |
import "testing" | |
func TestSwitch(t *testing.T) { | |
var ( | |
a int | |
b int | |
c = &b | |
) | |
x := SwitchFunction(a, b, c) | |
if x != "c" { | |
t.Error("wtf?") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment