Skip to content

Instantly share code, notes, and snippets.

@mottet-dev
Created July 8, 2019 20:28
Embed
What would you like to do?
Go Test
package helpers
import "testing"
func TestDoesSliceIncludesInt(t *testing.T) {
inputValue := 3
inputSlice := []int{1, 2, 3}
expectedOutput := true
got := DoesSliceIncludesInt(inputValue, inputSlice)
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment