package Ġio . kot lint est . matchers Ċ Ċ import Ġio . kot lint est . specs . Free Spec Ċ Ċ class ĠString Matchers Test Ġ: ĠFree Spec (), ĠMatch ers Ġ{ ĊĠ Ġinit Ġ{ ĊĊĠĠĠ Ġ" should Ġend With " Ġ- Ġ{ ĊĠĠĠĠĠ Ġ" should Ġtest Ġstrings " Ġ{ ĊĠĠĠĠĠĠĠ Ġ" hello " Ġshould Ġend With (" o ") ĊĠĠĠĠĠĠĠ Ġ" hello " Ġshould Ġstart With ("") ĊĠĠĠĠĠĠĠ Ġ"" Ġshould Ġstart With ("") ĊĠĠĠĠĠĠĠ Ġshould Throw < AssertionError > Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġ"" Ġshould Ġend With (" h ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġshould Throw < AssertionError > Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġ" hello " Ġshould Ġend With (" good bye ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ" should Ġstart With " Ġ- Ġ{ ĊĠĠĠĠĠ Ġ" should Ġtest Ġstrings " Ġ{ ĊĠĠĠĠĠĠĠ Ġ" hello " Ġshould Ġstart With (" h ") ĊĠĠĠĠĠĠĠ Ġ" hello " Ġshould Ġstart With ("") ĊĠĠĠĠĠĠĠ Ġ"" Ġshould Ġstart With ("") ĊĠĠĠĠĠĠĠ Ġshould Throw < AssertionError > Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġ"" Ġshould Ġstart With (" h ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġshould Throw < AssertionError > Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġ" hello " Ġshould Ġstart With (" good bye ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ" Matchers Ġshould Ġstart Ġwith Ġx " Ġ- Ġ{ ĊĠĠĠĠĠ Ġ" should Ġcompare Ġprefix Ġof Ġstring " Ġ{ ĊĠĠĠĠĠĠĠ Ġ" bib ble " Ġshould Ġstart Ġwith Ġ"" ĊĠĠĠĠĠĠĠ Ġ" bib ble " Ġshould Ġstart Ġwith Ġ" bib " ĊĠĠĠĠĠĠĠ Ġ" bib ble " Ġshould Ġstart Ġwith Ġ" bib ble " ĊĠĠĠĠĠ Ġ} ĊĠĠĠĠĠ Ġ" should Ġfail Ġif Ġstring Ġdoes Ġnot Ġstart Ġwith Ġx " Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġt Ġ= Ġtry Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġ" bib ble " Ġshould Ġstart Ġwith Ġ" vv " ĊĠĠĠĠĠĠĠĠĠ Ġtrue ĊĠĠĠĠĠĠĠ Ġ} Ġcatch ( e : ĠAssertionError ) Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġfalse ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġt ĠshouldBe Ġfalse ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠĠĠ Ġ" should Ġhave Length ( 5 )" Ġ- Ġ{ ĊĠĠĠĠĠ Ġ" should Ġcompare Ġlength Ġof Ġstring " Ġ{ ĊĠĠĠĠĠĠĠ Ġ" bib ble " Ġshould Ġhave Length ( 6 ) ĊĠĠĠĠĠĠĠ Ġ"" Ġshould Ġhave Length ( 0 ) ĊĠĠĠĠĠĠĠ Ġshould Throw < AssertionError > Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġ"" Ġshould Ġhave Length ( 3 ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠĠĠ Ġ" Matchers Ġshould Ġend Ġwith Ġx " Ġ- Ġ{ ĊĠĠĠĠĠ Ġ" should Ġcompare Ġprefix Ġof Ġstring " Ġ{ ĊĠĠĠĠĠĠĠ Ġ" bib ble " Ġshould Ġend Ġwith Ġ"" ĊĠĠĠĠĠĠĠ Ġ" bib ble " Ġshould Ġend Ġwith Ġ" ble " ĊĠĠĠĠĠĠĠ Ġ" bib ble " Ġshould Ġend Ġwith Ġ" bib ble " ĊĠĠĠĠĠ Ġ} ĊĠĠĠĠĠ Ġ" should Ġfail Ġif Ġstring Ġdoes Ġnot Ġend Ġwith Ġx " Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġt Ġ= Ġtry Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġ" bib ble " Ġshould Ġend Ġwith Ġ" q we " ĊĠĠĠĠĠĠĠĠĠ Ġtrue ĊĠĠĠĠĠĠĠ Ġ} Ġcatch ( e : ĠAssertionError ) Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġfalse ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġt ĠshouldBe Ġfalse ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠĠĠ Ġ" Matchers Ġshould Ġhave Ġsubstring Ġx " Ġ- Ġ{ ĊĠĠĠĠĠ Ġ" should Ġtest Ġstring Ġcontains Ġsubstring " Ġ{ ĊĠĠĠĠĠĠĠ Ġ" bib ble " Ġshould Ġhave Ġsubstring Ġ"" ĊĠĠĠĠĠĠĠ Ġ" bib ble " Ġshould Ġhave Ġsubstring Ġ" bb " ĊĠĠĠĠĠĠĠ Ġ" bib ble " Ġshould Ġhave Ġsubstring Ġ" bib ble " ĊĠĠĠĠĠ Ġ} ĊĠĠĠĠĠ Ġ" should Ġfail Ġif Ġstring Ġdoes Ġnot Ġcontains Ġsubstring " Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġt Ġ= Ġtry Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġ" bib ble " Ġshould Ġhave Ġsubstring Ġ" q we q we " ĊĠĠĠĠĠĠĠĠĠ Ġtrue ĊĠĠĠĠĠĠĠ Ġ} Ġcatch ( e : ĠAssertionError ) Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġfalse ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġt ĠshouldBe Ġfalse ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠĠĠ Ġ" String Ġshould Ġmatch Ġregex " Ġ- Ġ{ ĊĠĠĠĠĠ Ġ" should Ġtest Ġstring Ġmatches Ġregular Ġexpression " Ġ{ ĊĠĠĠĠĠĠĠ Ġ" sam " Ġshould Ġmatch (" sam ") ĊĠĠĠĠĠĠĠ Ġ" bib ble " Ġshould Ġmatch (" bib b .. ") ĊĠĠĠĠĠĠĠ Ġ" foo " Ġshould Ġmatch (" .* ") ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ }