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