Skip to content

Instantly share code, notes, and snippets.

@mottet-dev
Created July 10, 2019 20:45
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 mottet-dev/0fe7597de016f34d212188bcc36b9b47 to your computer and use it in GitHub Desktop.
Save mottet-dev/0fe7597de016f34d212188bcc36b9b47 to your computer and use it in GitHub Desktop.
Go Test - TestAreSlicesEqual
func TestAreSlicesEqual(t *testing.T) {
type args struct {
a []int
b []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 := AreSlicesEqual(tt.args.a, tt.args.b); got != tt.want {
t.Errorf("AreSlicesEqual() = %v, want %v", got, tt.want)
}
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment