master
Raw Download raw file
 1package string
 2
 3import "testing"
 4
 5func Test(t *testing.T) {
 6  var tests = []struct {
 7    s, want string
 8  }{
 9    {"Backward", "drawkcaB"},
10    {"I am dissapoint ಠ_ಠ","ಠ_ಠ tniopassid ma I"},
11    {"",""},
12  }
13  for _, c := range tests {
14    got := Reverse(c.s)
15    if got != c.want {
16      t.Errorf("Reverse(%q) == %q, want %q", c.s, got, c.want)
17    }
18  }
19}