Created
July 10, 2019 20:45
-
-
Save mottet-dev/0fe7597de016f34d212188bcc36b9b47 to your computer and use it in GitHub Desktop.
Go Test - TestAreSlicesEqual
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
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