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