package Ġio . github . to mpl um . a oc . forest . to bo gg an Ċ Ċ import Ġassert k . assertThat Ċ import Ġassert k . assertions . isEqualTo Ċ import Ġio . github . to mpl um . a oc . input . Test Input Reader Ċ import Ġorg . junit . jupiter . api . Test Ċ Ċ class ĠForest Map Test Ġ{ ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġexample () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġdata Ġ= ĠTest Input Reader . read < String >(" map / forest / forest - map . txt ") ĊĠĠĠĠĠĠĠ Ġval Ġmap Ġ= ĠForest Map ( data . value ) ĊĠĠĠĠĠĠĠ ĠassertThat ( map . track To bo gg an Trajectory ( S lope Trajectory ( 3 , 1 ))). isEqualTo ( 7 ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġmultiple S lope Example () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġdata Ġ= ĠTest Input Reader . read < String >(" map / forest / forest - map . txt ") ĊĠĠĠĠĠĠĠ Ġval Ġmap Ġ= ĠForest Map ( data . value ) ĊĠĠĠĠĠĠĠ Ġval Ġslo pes Ġ= ĠarrayOf ( S lope Trajectory ( 1 , 1 ), ĠS lope Trajectory ( 3 , 1 ), ĠS lope Trajectory ( 5 , 1 ), ĠS lope Trajectory ( 7 , 1 ), ĠS lope Trajectory ( 1 , 2 )) ĊĠĠĠĠĠĠĠ ĠassertThat ( map . track To bo gg an Trajectory (* slo pes )). isEqualTo ( 3 3 6 ) ĊĠĠĠ Ġ} Ċ }