package Ġcs ense . kotlin . specific Extensions . string Ċ Ċ import Ġcs ense . kotlin . tests . assertions .* Ċ import Ġkotlin . test .* Ċ Ċ class ĠFile Test Ġ{ ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġstring File File Extension () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġno Extension Message Ġ= Ġ" there Ġare Ġno Ġextensions Ġin Ġthis Ġstring " ĊĠĠĠĠĠĠĠ Ġ"". file Extensions . file Extension (). assertNull ( no Extension Message ) ĊĠĠĠĠĠĠĠ Ġ" test ". file Extensions . file Extension (). assertNull ( no Extension Message ) ĊĠĠĠĠĠĠĠ Ġ" test .". file Extensions . file Extension (). assertNull ( no Extension Message ) ĊĠĠĠĠĠĠĠ Ġ" test .. ". file Extensions . file Extension (). assertNull ( no Extension Message ) ĊĊĠĠĠĠĠĠĠ Ġ" test . a ". file Extensions . file Extension (). assertNotNull And Equals (" a ") ĊĠĠĠĠĠĠĠ Ġ" test . a .". file Extensions . file Extension (). assertNull (" since Ġthe Ġtext Ġends Ġin Ġ. Ġthen Ġthere Ġare Ġno Ġextension .") ĊĠĠĠĠĠĠĠ Ġ" test . a . b ". file Extensions . file Extension (). assertNotNull And Equals (" b ") ĊĠĠĠĠĠĠĠ Ġ" test .. a ". file Extensions . file Extension (). assertNotNull And Equals (" a ") ĊĊĠĠĠĠĠĠĠ Ġ// more Ġreal Ġlife Ġexamples ĊĠĠĠĠĠĠĠ Ġ" test . xml ". file Extensions . file Extension (). assertNotNull And Equals (" xml ") ĊĠĠĠĠĠĠĠ Ġ" test .\ $ java ". file Extensions . file Extension (). assertNotNull And Equals ("\ $ java ") ĊĠĠĠĠĠĠĠ Ġ" test .\" xml ". file Extensions . file Extension (). assertNotNull And Equals ("\" xml ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġstring File With File Extension () Ġ{ ĊĠĠĠĠĠĠĠ Ġ"". file Extensions . with File Extension (" test "). assert (". test ") ĊĠĠĠĠĠĠĠ Ġ". ". file Extensions . with File Extension (" test "). assert (". test ") ĊĠĠĠĠĠĠĠ Ġ". t ". file Extensions . with File Extension (" test "). assert (". test ") ĊĠĠĠĠĠĠĠ Ġ" t . t ". file Extensions . with File Extension (" test "). assert (" t . test ") ĊĠĠĠĠĠĠĠ Ġ" i . am . a . long . string ". file Extensions . with File Extension (" long . string "). assert (" i . am . a . long . long . string ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġstring File Without File Extension () Ġ{ ĊĠĠĠĠĠĠĠ Ġ"". file Extensions . without File Extension (). assert ("") ĊĠĠĠĠĠĠĠ Ġ" test ". file Extensions . without File Extension (). assert (" test ") ĊĠĠĠĠĠĠĠ Ġ" random Ġstring Ġwith Ġsome Ġfun ". file Extensions . without File Extension (). assert (" random Ġstring Ġwith Ġsome Ġfun ") ĊĠĠĠĠĠĠĠ Ġ" test . asd ". file Extensions . without File Extension (). assert (" test ") ĊĠĠĠĠĠĠĠ Ġ" qw erty . xml ". file Extensions . without File Extension (). assert (" qw erty ") ĊĠĠĠĠĠĠĠ Ġ" qw erty . xml . js ". file Extensions . without File Extension (). assert (" qw erty . xml ") ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġstring File Extensions () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġx Ġ= Ġ"". file Extensions ĊĠĠĠĠĠĠĠ Ġval Ġy Ġ= Ġ" Ġ". file Extensions ĊĠĠĠĠĠĠĠ Ġ( x Ġ!= Ġy ). assertTrue (" should Ġhave Ġunique Ġinstances ") ĊĠĠĠ Ġ} Ċ }