package Ġcs ense . kotlin . extensions . primitives Ċ Ċ import Ġcs ense . kotlin . tests . assertions .* Ċ import Ġkotlin . test .* Ċ Ċ class ĠShort Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshort Is Odd () Ġ{ ĊĠĠĠĠĠĠĠĠ 0 . to Short (). is Odd . assertFalse () ĊĠĠĠĠĠĠĠ Ġ(- 1 ). to Short (). is Odd . assertTrue () ĊĠĠĠĠĠĠĠĠ 1 . to Short (). is Odd . assertTrue () ĊĠĠĠĠĠĠĠĠ 8 0 . to Short (). is Odd . assertFalse () ĊĠĠĠĠĠĠĠ Ġ(- 8 2 ). to Short (). is Odd . assertFalse () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshort Is Even () Ġ{ ĊĠĠĠĠĠĠĠĠ 0 . to Short (). is Even . assertTrue () ĊĠĠĠĠĠĠĠ Ġ(- 1 ). to Short (). is Even . assertFalse () ĊĠĠĠĠĠĠĠĠ 1 . to Short (). is Even . assertFalse () ĊĠĠĠĠĠĠĠĠ 8 0 . to Short (). is Even . assertTrue () ĊĠĠĠĠĠĠĠ Ġ(- 8 2 ). to Short (). is Even . assertTrue () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshort Is Positive () Ġ{ ĊĠĠĠĠĠĠĠĠ 0 . to Short (). is Positive . assertFalse () ĊĠĠĠĠĠĠĠ Ġ(- 1 ). to Short (). is Positive . assertFalse () ĊĠĠĠĠĠĠĠĠ 1 . to Short (). is Positive . assertTrue () ĊĠĠĠĠĠĠĠĠ 8 0 . to Short (). is Positive . assertTrue () ĊĠĠĠĠĠĠĠ Ġ(- 8 2 ). to Short (). is Positive . assertFalse () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshort Is Negative () Ġ{ ĊĠĠĠĠĠĠĠĠ 0 . to Short (). is Negative . assertFalse () ĊĠĠĠĠĠĠĠ Ġ(- 1 ). to Short (). is Negative . assertTrue () ĊĠĠĠĠĠĠĠĠ 1 . to Short (). is Negative . assertFalse () ĊĠĠĠĠĠĠĠĠ 8 0 . to Short (). is Negative . assertFalse () ĊĠĠĠĠĠĠĠ Ġ(- 8 2 ). to Short (). is Negative . assertTrue () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshort Is Positive Or Zero () Ġ{ ĊĠĠĠĠĠĠĠĠ 0 . to Short (). is Positive Or Zero . assertTrue () ĊĠĠĠĠĠĠĠ Ġ(- 1 ). to Short (). is Positive Or Zero . assertFalse () ĊĠĠĠĠĠĠĠĠ 1 . to Short (). is Positive Or Zero . assertTrue () ĊĠĠĠĠĠĠĠĠ 8 0 . to Short (). is Positive Or Zero . assertTrue () ĊĠĠĠĠĠĠĠ Ġ(- 8 2 ). to Short (). is Positive Or Zero . assertFalse () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshort Is Negative Or Zero () Ġ{ ĊĠĠĠĠĠĠĠĠ 0 . to Short (). is Negative Or Zero . assertTrue () ĊĠĠĠĠĠĠĠ Ġ(- 1 ). to Short (). is Negative Or Zero . assertTrue () ĊĠĠĠĠĠĠĠĠ 1 . to Short (). is Negative Or Zero . assertFalse () ĊĠĠĠĠĠĠĠĠ 8 0 . to Short (). is Negative Or Zero . assertFalse () ĊĠĠĠĠĠĠĠ Ġ(- 8 2 ). to Short (). is Negative Or Zero . assertTrue () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshort Is Zero () Ġ{ ĊĠĠĠĠĠĠĠĠ 0 . to Short (). is Zero . assertTrue () ĊĠĠĠĠĠĠĠ Ġ(- 1 ). to Short (). is Zero . assertFalse () ĊĠĠĠĠĠĠĠĠ 1 . to Short (). is Zero . assertFalse () ĊĠĠĠĠĠĠĠĠ 8 0 . to Short (). is Zero . assertFalse () ĊĠĠĠĠĠĠĠ Ġ(- 8 2 ). to Short (). is Zero . assertFalse () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshort IsNot Zero () Ġ{ ĊĠĠĠĠĠĠĠĠ 0 . to Short (). isNot Zero . assertFalse () ĊĠĠĠĠĠĠĠ Ġ(- 1 ). to Short (). isNot Zero . assertTrue () ĊĠĠĠĠĠĠĠĠ 1 . to Short (). isNot Zero . assertTrue () ĊĠĠĠĠĠĠĠĠ 8 0 . to Short (). isNot Zero . assertTrue () ĊĠĠĠĠĠĠĠ Ġ(- 8 2 ). to Short (). isNot Zero . assertTrue () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshort Positive () Ġ{ ĊĠĠĠĠĠĠĠĠ 0 . to Short (). positive . assert ( 0 ) ĊĠĠĠĠĠĠĠ Ġ(- 1 ). to Short (). positive . assert ( 1 ) ĊĠĠĠĠĠĠĠĠ 1 . to Short (). positive . assert ( 1 ) ĊĠĠĠĠĠĠĠĠ 8 0 . to Short (). positive . assert ( 8 0 ) ĊĠĠĠĠĠĠĠ Ġ(- 8 2 ). to Short (). positive . assert ( 8 2 ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshort Negative () Ġ{ ĊĠĠĠĠĠĠĠĠ 0 . to Short (). negative . assert (- 0 ) ĊĠĠĠĠĠĠĠ Ġ(- 1 ). to Short (). negative . assert (- 1 ) ĊĠĠĠĠĠĠĠĠ 1 . to Short (). negative . assert (- 1 ) ĊĠĠĠĠĠĠĠĠ 8 0 . to Short (). negative . assert (- 8 0 ) ĊĠĠĠĠĠĠĠ Ġ(- 8 2 ). to Short (). negative . assert (- 8 2 ) ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshort Sh r () Ġ{ ĊĠĠĠĠĠĠĠĠ 0 . to Short (). shr ( 0 ). assert ( 0 ) ĊĠĠĠĠĠĠĠĠ 1 . to Short (). shr ( 0 ). assert ( 1 ) ĊĠĠĠĠĠĠĠĠ 5 0 . to Short (). shr ( 0 ). assert ( 5 0 ) ĊĊĠĠĠĠĠĠĠĠ 1 . to Short (). shr ( 1 ). assert ( 0 ) ĊĠĠĠĠĠĠĠ Ġ( 0 b 0 1 1 1 ). to Short (). shr ( 1 ). assert ( 0 b 0 0 1 1 ) ĊĠĠĠĠĠĠĠ Ġ( 0 b 0 1 1 1 ). to Short (). shr ( 2 ). assert ( 0 b 0 0 0 1 ) ĊĠĠĠĠĠĠĠ Ġ( 0 b 0 1 1 1 ). to Short (). shr ( 3 ). assert ( 0 b 0 0 0 0 ) ĊĠĠĠĠĠĠĠ Ġ( 0 b 0 1 1 1 ). to Short (). shr ( 4 ). assert ( 0 b 0 0 0 0 ) ĊĠĠĠ Ġ} ĊĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshort Sh l () Ġ{ ĊĠĠĠĠĠĠĠĠ 0 . to Short (). sh l ( 0 ). assert ( 0 ) ĊĠĠĠĠĠĠĠĠ 1 . to Short (). sh l ( 0 ). assert ( 1 ) ĊĠĠĠĠĠĠĠĠ 5 0 . to Short (). sh l ( 0 ). assert ( 5 0 ) ĊĊĠĠĠĠĠĠĠĠ 1 . to Short (). sh l ( 1 ). assert ( 2 ) ĊĠĠĠĠĠĠĠ Ġ( 0 b 0 1 1 1 ). to Short (). sh l ( 1 ). assert ( 0 b 1 1 1 0 ) ĊĠĠĠĠĠĠĠ Ġ( 0 b 0 0 0 1 ). to Short (). sh l ( 2 ). assert ( 0 b 0 1 0 0 ) ĊĠĠĠĠĠĠĠ Ġ( 0 b 0 0 0 1 ). to Short (). sh l ( 3 ). assert ( 0 b 1 0 0 0 ) ĊĠĠĠĠĠĠĠ Ġ( 0 b 0 0 0 1 ). to Short (). sh l ( 4 ). assert ( 0 b 1 0 0 0 0 ) ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshort Companion Zero () Ġ{ ĊĠĠĠĠĠĠĠ ĠShort . zero . assert ( 0 ) ĊĠĠĠ Ġ} Ċ }