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.1.0.39 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.38 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.37 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.36 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.34 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.33 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.32 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.31 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.30 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.29 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.28 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.27 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.26 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.25 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.24 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.23 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.22 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.21 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.20 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.19 tracks/go/exercises/pig-latin/pig_latin_test.go