package Ġdev . ms l al ith . focus launcher . data . repository . settings Ċ Ċ import Ġcom . google . common . truth . Truth . assertThat Ċ import Ġdev . ms l al ith . focus launcher . android test . shared . DataStore Test Ċ import Ġdev . ms l al ith . focus launcher . data . utils . Constants Ċ import Ġkotlinx . coroutines . Experimental Cor outines Api Ċ import Ġkotlinx . coroutines . flow . first Ċ import Ġkotlinx . coroutines . test . run Test Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . ro bo lectric . Ro bo lectric TestRunner Ċ Ċ @ Opt In ( Experimental Cor outines Api :: class ) Ċ @ RunWith ( Ro bo lectric TestRunner :: class ) Ċ class ĠQu otes Settings Repo Test Ġ: ĠData Store Test < Quotes Settings Repo >( ĊĠĠĠ Ġsetup Repo Ġ= Ġ{ ĠQu otes Settings Repo ( it ) Ġ} Ċ ) Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġget Show Quotes Flow () Ġ= Ġrun Test Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġvalue Ġ= Ġrepo . show Quotes Flow . first () ĊĠĠĠĠĠĠĠ ĠassertThat ( value ). isEqualTo ( Constants . Defaults . Settings . Quotes . DEFAULT _ SHOW _ QUOT ES ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtoggle Show Quotes () Ġ= Ġrun Test Ġ{ ĊĠĠĠĠĠĠĠ Ġrepo . toggle Show Quotes () ĊĠĠĠĠĠĠĠ Ġval Ġvalue Ġ= Ġrepo . show Quotes Flow . first () ĊĠĠĠĠĠĠĠ ĠassertThat ( value ). isEqualTo (! Constants . Defaults . Settings . Quotes . DEFAULT _ SHOW _ QUOT ES ) ĊĠĠĠ Ġ} Ċ } Ċ