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.2.1.82 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.81 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.80 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.79 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.78 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.77 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.76 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.75 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.74 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.73 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.72 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.71 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.70 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.69 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.68 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.67 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.66 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.65 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.64 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.63 tracks/go/exercises/pig-latin/pig_latin_test.go