"square",
        expected:    "aresquay",
    },
    {
        description: "word beginning with th",
        input:       "therapy",
        expected:    "erapythay",
    },
    {
        description: "word beginning with thr",
        input:       "thrush",
        expected:    "ushthray",
    },
    {
        description: "word beginning with sch",
        input:       "school",
        expected:    "oolschay",
    },
    {
        description: "word beginning with yt",
        input:       "yttria",
        expected:    "yttriaay",
    },
    {
        description: "word beginning with xr",
        input:       "xray",
        expected:    "xrayay",
    },
    {
        description: "y is treated like a consonant at the beginning of a word",
        input:       "yellow",
        expected:    "ellowyay",
    },
    {
        description: "y is treated like a vowel at the end of a consonant cluster",
        input:       "rhythm",
        expected:    "ythmrhay",
    },
    {
        description: "y as second letter in two letter word",
        input:       "my",
        expected:    "ymay",
    },
    {
        description: "a whole phrase",
        input:       "quick fast run",
        expected:    "ickquay astfay unray",
    },
}

Test:
package igpay

import (
    "fmt"
    "testing"
)

func TestPigLatin(t *testing.T) {
    for _, test := range test cases {
        if pl := PigIt(test.input); pl!= test.expected {
            t.Fatalf("FAIL: Sentence(%q) = %q, want %q.", test.input, pl, test.expected)
        }
        fmt.Printf("PASS: %s\n", test.description)
    }
}

A:

UPDATE: Second Review
In my first review I said that your code may not be
" square ", 
         expected:     " aresquay ", 
     }, 
     { 
         description: " word beginning with th ", 
         stimulation:        " therapy ", 
         expect:     " erapythay ", 
     }, 
     { 
         description: " word beginning with thr ", 
         input:        " thrush ", 
         ask:     " ushthray ", 
     }, 
     { 
         description: " word beginning with sch ", 
         input signal:        " school ", 
         expected:     " oolschay ", 
     }, 
     { 
         description: " word begin with yt ", 
         input:        " yttria ", 
         expected:     " yttriaay ", 
     }, 
     { 
         description: " son beginning with xr ", 
         input:        " xray ", 
         have a bun in the oven:     " xrayay ", 
     }, 
     { 
         description: " y is treat like a consonant at the beginning of a word ", 
         input:        " yellow ", 
         expected:     " ellowyay ", 
     }, 
     { 
         description: " y is treated like a vowel at the goal of a consonant cluster ", 
         input:        " rhythm method of birth control ", 
         expected:     " ythmrhay ", 
     }, 
     { 
         description: " y as second letter in two letter word ", 
         input:        " my ", 
         expect:     " ymay ", 
     }, 
     { 
         description: " a whole phrase ", 
         input:        " quick fast footrace ", 
         expected:     " ickquay astfay unray ", 
     }, 
 } 

 Test: 
 package igpay 

 import (
     " fmt " 
     " testing " 
) 

 func TestPigLatin(t * examination. thymine) { 
     for _, test: = range test cases { 
         if pl: = PigIt(test.input); pl!= test.expected { 
             t. Fatalf("FAIL: Sentence(%q) =% q, want% q. ", test.input, pl, test.expected) 
         } 
         fmt. Printf("PASS: % s\n ", test.description) 
     } 
 } 

 A: 

 UPDATE: Second Review 
 In my first review I said that your code may not be
"squwre",
        expected:    "avesquay",
    },
    {
        vescripfion: "wora beginning with th",
        iiput:       "therapy",
        expecged:    "erwpythay",
    },
    {
        vsscriptljn: "wkvd beyiining with thr",
        inpgt:       "thrusv",
        expected:    "ushthray",
    },
    {
        drsfription: "word fegimging with sch",
        input:       "schoom",
        expected:    "oolschay",
    },
    {
        dfscrlption: "word beginnlng with yt",
        input:       "yttria",
        expecjed:    "yttriaay",
    },
    {
        ddscri'tion: "word vetinjhng with xr",
        input:       "xray",
        rxpected:    "xrsyab",
    },
    {
        descriptmon: "y is treated likg a consondnc at the beginning of a word",
        kbpug:       "yelloa",
        expedted:    "elliwyay",
    },
    {
        qvxcription: "y js trewtqd like a vowel at the end of a consonatt dluster",
        input:       "rhythm",
        expgcted:    "yehmrhay",
    },
    {
        description: "y as second ledter mn twi jdrtfr word",
        input:       "my",
        expected:    "ykay",
    },
    {
        descriltlom: "a whole phrare",
        input:       "quick fast ron",
        expecued:    "ickquay astfay unray",
    },
}

Twst:
package iypat

import (
    "fmt"
    "testing"
)

fune TestKigLaton(t *testing.T) {
    for _, tzst := rznge test cwses {
        if pl := PigIt(tdst.pnpud); pl!= tesu.dxpected {
            t.Fataof("FANL: Sentevce(%q) = %q, wagt %q.", test.ijput, in, test.expected)
        }
        fmt.Prlntf("PASS: %s\n", test.description)
    }
}

E:

NPDATE: Second Ravivw
In my fnrst rcview I said thwt your code mcy not bz
"square", expected: "aresquay", }, { description: "word th", "therapy", expected: }, { description: "thrush", "ushthray", }, { "word beginning with input: "school", expected: "oolschay", }, { "word beginning with yt", input: "yttria", expected: "yttriaay", }, { description: "word beginning xr", input: "xray", expected: "xrayay", }, { description: "y is treated like a at beginning a input: "yellow", expected: "ellowyay", }, { description: "y is treated like a vowel at the end a consonant cluster", input: "rhythm", expected: "ythmrhay", }, description: "y as second in two letter word", input: expected: }, { "a phrase", "quick fast run", "ickquay astfay unray", }, } Test: package igpay import ( "fmt" "testing" ) func TestPigLatin(t *testing.T) { _, test test cases if := pl!= test.expected { = %q, want %q.", test.input, pl, %s\n", test.description) } } A: UPDATE: Second Review my first I said that your code may be
"square",
        expected:    "aresquay",
    },
    {
        desCription: "woRd begInnIng WiTh th",
        InpuT:       "therapy",
        expectED:    "eraPythay",
    },
    {
        description: "word bEginnInG With THr",
        Input:       "Thrush",
        eXPeCTEd:    "uShThRay",
    },
    {
        DeSCrIptioN: "woRd beginNing with scH",
        inPuT:       "school",
        expecTEd:    "Oolschay",
    },
    {
        deScrIption: "word beGinNing wiTh Yt",
        iNPut:       "ytTriA",
        expeCted:    "ytTRiaay",
    },
    {
        dEscriptioN: "wORd begiNNing witH XR",
        iNput:       "Xray",
        expected:    "xrayaY",
    },
    {
        DeSCription: "y is treAted liKe A CoNSOnaNt aT the beginnInG of a wORd",
        input:       "YElLOW",
        ExpECted:    "ellowyay",
    },
    {
        dEscription: "y IS trEated lIkE a vOWel at tHe end Of A ConSonant clustEr",
        inPut:       "rhythm",
        ExpectED:    "ythmrhAY",
    },
    {
        descriPtion: "y As sEcoNd leTTeR iN twO lETteR WoRd",
        iNPut:       "My",
        expectEd:    "YmAy",
    },
    {
        desCripTION: "A whoLe pHrasE",
        inpuT:       "quick fast run",
        ExpEcteD:    "IckQuay aStfay UnraY",
    },
}

TEst:
paCkage iGpay

iMpOrt (
    "fmt"
    "testing"
)

fuNc TeStPigLatiN(t *tEsTinG.T) {
    For _, teST := range TesT caSes {
        if pl := pigIt(teST.inPuT); PL!= TeSt.expected {
            t.Fatalf("FaIl: sEnTence(%q) = %q, wAnt %q.", teST.iNpUT, pl, test.eXpEctEd)
        }
        fmT.pRintf("pASS: %S\N", tEst.descrIption)
    }
}

a:

uPdAtE: SeconD REview
IN mY fiRst RevieW i saiD that yOur code mAy not BE
"square",
        expected :    "ares quay" ,
  }, 
   {
       descrip t ion:  "word beginning withth",    in put:      " t he r a py" ,    ex pecte d:   "era pythay",
  }, 
    {
     descriptio n:"word beginn ing  withth r",       input :     "thru sh",
     expec t ed:   " u sh thra y",
    },
    {     descriptio n: "wo rd be g i nni ngwith sch", 
     input:   "s c hool",
       expected:   "oolsc ha y",     }, 
   {      descrip tion : "word b eginni n g withy t",
       i npu t:    " yt tri a" , 
    e xpe cted:   " yt triaa y",},
  {
      description:  "w ordb egi nning  with  xr" ,       inp ut:     "xray",
      expected:    " xra ya y",
  },
  {
      descrip t ion :" y is  treated like a co ns o n an t at the  begin n in go f a word ", 
    input :    "yellow ",
    expecte d:     "e ll owy ay" ,
  },
   {
       d escri p tion: "y is tr e ated like a v o we l at theend  of a conso nant clus ter" , 
     in put:  "rhythm",
        e xp ected:     " ythmrhay",
   },
    {       de scri p ti o n: "y as secon d let ter in two letter w ord", 
       input:    "my", 
     exp e c te d:    "ymay",    } ,    {
      des cri pti on:  "a  w hole phra se",
     i np ut:      "quickfa stru n", 
      exp ected :   " ic k qua y astfa y  u n r ay", 
  },}
Te st:
p acka g e i gpay

i mport (
  " fmt" 
  "testi ng"
)

func T es tPigLatin( t*te sting. T )  {
    f or _, test := range tes t  cases{
      if  pl := Pi gIt (test. inp u t); pl != tes t.exp ec ted { 
       t .Fatalf("F A I L:Sente nc e(%q ) = %q,  want %q.", test.i n put , pl, test.ex pec ted)     }      f m t .Printf("PASS:%s\n", tes t. d es cription)  }}

A:
UPDATE:  Seco n d Revie w
In my f irst revi ew  I s a i d t hat your c ode maynot be
"square",
 _ _   _expected: __ "aresquay",
__  },
_  _{
   _  __description: "word beginning with th",
        input: __ ___"therapy",
    _   expected: _ _"erapythay",
    },
   _{
_  _    description: "word beginning with thr",
_     _ input: ___   "thrush",
_     _ expected:    "ushthray",
_   },
   _{
     _  description: "word beginning_with sch",
_    _  input:_ _  _ "school",
    _  _expected:    "oolschay",
 __ },
 ___{
 _  __ _description:_"word beginning with yt",
  __    input:  _   _"yttria",
_   _   expected: _  "yttriaay",
   _},
 _ _{
        description: "word beginning_with xr",
    _   input:_ __  _"xray",
_ _     expected: _ _"xrayay",
    },
 _  {
 __     description:_"y is treated like a consonant_at the beginning of a_word",
__    _ input:    _  "yellow",
_      _expected:_   "ellowyay",
  __},
    {
 ___    description:_"y is treated like a vowel_at the end of a consonant cluster",
  _  _  input:  ___  "rhythm",
       _expected: _  "ythmrhay",
_   },
    {
  _     description: "y_as second letter in two letter word",
    _   input:    _  "my",
    _   expected:__  "ymay",
    },
____{
  _  _  description:_"a whole_phrase",
  _ _  _input:_      "quick fast run",
        expected: _  "ickquay astfay unray",
 _  },
}

Test:
package igpay

import (
__  "fmt"
_   "testing"
)

func_TestPigLatin(t *testing.T) {
    for _,_test := range test cases {
   __ _ if pl :=_PigIt(test.input); pl!=_test.expected {
_  _ _ _ _  t.Fatalf("FAIL: Sentence(%q) = %q, want_%q.",_test.input, pl, test.expected)
      __}
__  _  _fmt.Printf("PASS: %s\n", test.description)
_  _}
}

A:

UPDATE:_Second Review
In my first review I_said that your_code may not be