Skip to content

Instantly share code, notes, and snippets.

@plutov
Created May 4, 2020 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plutov/a5a4d910838730e37107a905918ba8b5 to your computer and use it in GitHub Desktop.
Save plutov/a5a4d910838730e37107a905918ba8b5 to your computer and use it in GitHub Desktop.
testable2.go
func TestStrInSlice(t *testing.T) {
got := StrInSlice([]string{"a", "b"}, "c")
if got == true {
t.Errorf("expecting false, got true")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment