package Ġcom . bad oo . reak t ive . test . maybe Ċ Ċ import Ġcom . bad oo . reak t ive . maybe . Maybe Ċ import Ġkotlin . test . assertEquals Ċ import Ġkotlin . test . assertFalse Ċ import Ġkotlin . test . assertTrue Ċ Ċ fun Ġ< T > ĠTest Maybe Observer < T >. assert Success () Ġ{ ĊĠĠĠ ĠassertTrue ( is Success , Ġ" Maybe Ġdid Ġnot Ġsuccess ") Ċ } Ċ Ċ fun Ġ< T > ĠTest Maybe Observer < T >. assert Success ( expected Value : ĠT ) Ġ{ ĊĠĠĠ ĠassertEquals ( expected Value , Ġvalue , Ġ" Maybe Ġsuccess Ġvalues Ġdo Ġnot Ġmatch ") Ċ } Ċ Ċ fun Ġ< T > ĠTest Maybe Observer < T >. assertNot Success () Ġ{ ĊĠĠĠ ĠassertFalse ( is Success , Ġ" Maybe Ġis Ġsucceeded ") Ċ } Ċ Ċ fun ĠTest Maybe Observer <* >. assert Complete () Ġ{ ĊĠĠĠ ĠassertTrue ( is Complete , Ġ" Maybe Ġdid Ġnot Ġcomplete ") Ċ } Ċ Ċ fun ĠTest Maybe Observer <* >. assertNot Complete () Ġ{ ĊĠĠĠ ĠassertFalse ( is Complete , Ġ" Maybe Ġis Ġcomplete ") Ċ } Ċ Ċ fun Ġ< T > ĠMaybe < T >. test (): ĠTest Maybe Observer < T > Ġ= ĊĠĠĠ ĠTest Maybe Observer < T >() ĊĠĠĠĠĠĠĠ Ġ. also (:: subscribe )