Sha256: 548c0014b3d9ab987d97115ec593ba536e1ea155123a73525b7c84c89a3fb7a4

Contents?: true

Size: 630 Bytes

Versions: 138

Compression:

Stored size: 630 Bytes

Contents

package igpay

import "testing"

var tests = []struct{ pl, in string }{
	{"appleay", "apple"},
	{"earay", "ear"},
	{"igpay", "pig"},
	{"oalakay", "koala"},
	{"airchay", "chair"},
	{"eenquay", "queen"},
	{"aresquay", "square"},
	{"erapythay", "therapy"},
	{"ushthray", "thrush"},
	{"oolschay", "school"},
	{"ickquay astfay unray", "quick fast run"},
	{"ellowyay", "yellow"},
	{"yttriaay", "yttria"},
	{"enonxay", "xenon"},
	{"xrayay", "xray"},
}

func TestPigLatin(t *testing.T) {
	for _, test := range tests {
		if pl := PigLatin(test.in); pl != test.pl {
			t.Fatalf("PigLatin(%q) = %q, want %q.", test.in, pl, test.pl)
		}
	}
}

Version data entries

138 entries across 138 versions & 1 rubygems

Version Path
trackler-2.0.5.1 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.5.0 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.4.0 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.3.9 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.3.8 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.3.7 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.3.6 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.3.5 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.3.4 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.3.3 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.3.2 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.3.1 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.3.0 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.2.0 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.1.2 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.1.1 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.1.0 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.0.10 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.0.9 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.0.8 tracks/go/exercises/pig-latin/pig_latin_test.go