package ĠAlgorithms . Sort Ċ Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġkotlin . test . assert Content Equals Ċ Ċ class ĠSh aker Sorting Test Ġ{ ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġinsertion Sort Test _ isEmpty (){ ĊĠĠĠĠĠĠĠ Ġassert ( sh aker Sort ( array Of ()). isEmpty ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġinsertion Sort Test _ Single Element (){ ĊĠĠĠĠĠĠĠ Ġassert Content Equals ( array Of ( 5 ), Ġsh aker Sort ( array Of ( 5 ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġinsertion Sort Test _ Same Elements (){ ĊĠĠĠĠĠĠĠ Ġassert Content Equals ( array Of ( 5 , 5 , 5 , 5 ), Ġsh aker Sort ( array Of ( 5 , 5 , 5 , 5 ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġinsertion Sort Test _ Cas ual (){ ĊĠĠĠĠĠĠĠ Ġassert Content Equals ( array Of ( 0 , 1 , 2 , 3 , 4 , 5 ), Ġsh aker Sort ( array Of ( 5 , 4 , 3 , 2 , 1 , 0 ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġinsertion Sort Test _ Cas ual With Duplicate (){ ĊĠĠĠĠĠĠĠ Ġassert Content Equals ( array Of ( 0 , 0 , 1 , 1 , 2 , 2 , 3 , 3 , 4 , 4 , 5 , 5 ), Ġsh aker Sort ( array Of ( 5 , 0 , 4 , 3 , 5 , 2 , 1 , 4 , 0 , 3 , 1 , 2 ))) ĊĠĠĠ Ġ} Ċ }