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.18 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.17 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.16 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.15 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.14 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.13 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.12 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.11 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.10 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.9 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.8 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.7 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.6 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.5 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.4 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.3 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.2 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.1 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.1.0.0 tracks/go/exercises/pig-latin/pig_latin_test.go
trackler-2.0.8.55 tracks/go/exercises/pig-latin/pig_latin_test.go