Skip to content

Instantly share code, notes, and snippets.

@cyantarek
Created February 8, 2020 16:01
Show Gist options
  • Save cyantarek/569a8894a8748556210bca035b4e1898 to your computer and use it in GitHub Desktop.
Save cyantarek/569a8894a8748556210bca035b4e1898 to your computer and use it in GitHub Desktop.
package reversestring
import (
"testing"
)
func TestReverseString1(t *testing.T) {
type args struct {
s string
}
tests := []struct {
name string
args args
want string
}{
// write your test case here....
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := ReverseString(tt.args.s); got != tt.want {
t.Errorf("ReverseString() = %v, want %v", got, tt.want)
}
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment