Sha256: aaed46cb1c9e1db2a7bd78c1ef3b3012e71d81a16ef8adbd352d8ae4e9a56116

Contents?: true

Size: 819 Bytes

Versions: 162

Compression:

Stored size: 819 Bytes

Contents

package igpay

import "testing"

const targetTestVersion = 1

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 TestTestVersion(t *testing.T) {
	if testVersion != targetTestVersion {
		t.Fatalf("Found testVersion = %v, want %v", testVersion, targetTestVersion)
	}
}

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

162 entries across 162 versions & 1 rubygems

Version Path
trackler-2.2.1.56 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.55 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.54 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.53 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.52 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.51 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.50 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.49 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.48 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.47 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.46 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.45 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.44 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.43 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.42 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.41 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.40 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.39 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.38 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.2.1.37 tracks/go/exercises/pig-latin/pig_latin_test.go