package Ġg 0 0 0 1 _ 0 1 0 0 . s 0 0 1 3 _ roman _ to _ integer Ċ Ċ import Ġorg . hamcrest . Core Matchers . equalTo Ċ import Ġorg . hamcrest . Matcher Assert . assertThat Ċ import Ġorg . junit . jupiter . api . Test Ċ Ċ class ĠSolution Test Ġ{ ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġrom an ToInt () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġsolution Ġ= ĠSolution () ĊĠĠĠĠĠĠĠ ĠassertThat ( solution . roman ToInt (" III "), ĠequalTo ( 3 )) ĊĠĠĠĠĠĠĠ ĠassertThat ( solution . roman ToInt (" IV "), ĠequalTo ( 4 )) ĊĠĠĠĠĠĠĠ ĠassertThat ( solution . roman ToInt (" IX "), ĠequalTo ( 9 )) ĊĠĠĠĠĠĠĠ ĠassertThat ( solution . roman ToInt (" LV III "), ĠequalTo ( 5 8 )) ĊĠĠĠĠĠĠĠ ĠassertThat ( solution . roman ToInt (" M CM X CI V "), ĠequalTo ( 1 9 9 4 )) ĊĠĠĠ Ġ} Ċ } Ċ