Created
February 4, 2022 11:49
-
-
Save jcdan3/94c0fdc71f7076dc7fdd447dcd7916aa to your computer and use it in GitHub Desktop.
generated test
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
package intIntSlice | |
import "testing" | |
func Test_intInSlice(t *testing.T) { | |
type args struct { | |
a int | |
list []int | |
} | |
tests := []struct { | |
name string | |
args args | |
want bool | |
}{ | |
// TODO: Add test cases. | |
} | |
for _, tt := range tests { | |
t.Run(tt.name, func(t *testing.T) { | |
if got := intInSlice(tt.args.a, tt.args.list); got != tt.want { | |
t.Errorf("intInSlice() = %v, want %v", got, tt.want) | |
} | |
}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment