package Ġorg . ke thereum . contract . abi . types Ċ Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġorg . ke thereum . contract . abi . types . model . types . Bool ETH Type Ċ import Ġkotlin . test . assert Fails With Ċ Ċ class ĠThe Bool Type Constraints Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġof String Works For Good Input () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertThat ( Bool ETH Type . of String (" true "). to Kotlin Type ()). isEqualTo ( true ) ĊĠĠĠĠĠĠĠ ĠassertThat ( Bool ETH Type . of String (" TRUE "). to Kotlin Type ()). isEqualTo ( true ) ĊĠĠĠĠĠĠĠ ĠassertThat ( Bool ETH Type . of String (" True "). to Kotlin Type ()). isEqualTo ( true ) ĊĊĠĠĠĠĠĠĠ ĠassertThat ( Bool ETH Type . of String (" false "). to Kotlin Type ()). isEqualTo ( false ) ĊĠĠĠĠĠĠĠ ĠassertThat ( Bool ETH Type . of String (" FALSE "). to Kotlin Type ()). isEqualTo ( false ) ĊĠĠĠĠĠĠĠ ĠassertThat ( Bool ETH Type . of String (" False "). to Kotlin Type ()). isEqualTo ( false ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġof String Fails For Invalid () Ġ{ ĊĠĠĠĠĠĠĠ Ġassert Fails With < IllegalArgumentException > Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠBool ETH Type . of String (" true Ġ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġassert Fails With < IllegalArgumentException > Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠBool ETH Type . of String ("") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }