Skip to content

Instantly share code, notes, and snippets.

@roberto
Forked from fsouza/str.go
Created July 30, 2013 22:10
Show Gist options
  • Save roberto/6117506 to your computer and use it in GitHub Desktop.
Save roberto/6117506 to your computer and use it in GitHub Desktop.
package str
func Reverse(input string) string {
return ""
}
package str
import (
"testing"
)
func TestReverse(t *testing.T) {
input := "AB"
output := Reverse(input)
expected := "BA"
if output != expected {
t.Errorf("Expected %s, got %s", expected, output)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment