Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 307 Bytes
package mininin
import (
"testing"
)
type GeneratorMock string
func (g GeneratorMock) Generate() string {
return string(g)
}
func TestGeneratorMockShouldGenerateItself(t *testing.T) {
g := GeneratorMock("$XKD")
got := g.Generate()
if got != "$XKD" {
t.Errorf("expected: $XKD, got: %s", got)
}
}