package Ġk py . utils Ċ Ċ import Ġcom . google . common . truth . Truth . assertThat Ċ import Ġorg . junit . Test Ċ Ċ class ĠCurrency Kt Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġcent sTo Dollar s () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertThat ( 4 9 9 9 . cent sTo Dollar s ). isEqualTo ( 4 9 . 9 9 ) ĊĠĠĠĠĠĠĠ ĠassertThat ( 1 0 0 0 . cent sTo Dollar s ). isEqualTo ( 1 0 . 0 0 ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġcent sTo Dollar s Format () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertThat ( 4 9 9 9 . cent sTo Dollar s Format ). isEqualTo ("$ 4 9 . 9 9 ") ĊĠĠĠĠĠĠĠ ĠassertThat ( 1 0 0 0 . cent sTo Dollar s Format ). isEqualTo ("$ 1 0 . 0 0 ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġformat Price () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertThat ( 1 2 3 4 5 6 7 8 9 . 5 6 8 . format Price (" â Ĥ¬ ")). isEqualTo (" â Ĥ¬ 1 2 3 , 4 5 6 , 7 8 9 . 5 7 ") ĊĠĠĠĠĠĠĠ ĠassertThat ( 6 0 . 6 0 . format Price ()). isEqualTo ("$ 6 0 . 6 0 ") ĊĠĠĠĠĠĠĠ ĠassertThat ( 1 . 0 . format Price ()). isEqualTo ("$ 1 . 0 0 ") ĊĠĠĠ Ġ} Ċ }