Created
February 8, 2020 16:01
-
-
Save cyantarek/569a8894a8748556210bca035b4e1898 to your computer and use it in GitHub Desktop.
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
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