import Ġanswer . Answer Ċ import Ġanswer . answer Equals Ċ import Ġorg . junit . Assert . assertEquals Ċ import Ġorg . junit . Test Ċ import Ġutils .* Ċ import Ġjava . util .* Ċ Ċ class ĠDay 1 0 Test Ġ{ ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġpart 1 sample () Ġ{ ĊĠĠĠ ĠassertEquals ( 1 2 , ĠDay 1 0 . part 1 (" 3 , 4 , 1 , 5 ", Ġ 5 )) ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġpart 1 () Ġ{ ĊĠĠĠ Ġanswer Equals ( Answer . DAY 1 0 _ PART 1 , ĠDay 1 0 . part 1 (" 2 2 7 , 1 6 9 , 3 , 1 6 6 , 2 4 6 , 2 0 1 , 0 , 4 7 , 1 , 2 5 5 , 2 , 2 5 4 , 9 6 , 3 , 9 7 , 1 4 4 ")) ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġpart 2 sample () Ġ{ ĊĠĠĠ ĠassertEquals (" a 2 5 8 2 a 3 a 0 e 6 6 e 6 e 8 6 e 3 8 1 2 dcb 6 7 2 a 2 7 2 ", ĠDay 1 0 . part 2 ("")) ĊĠĠĠ ĠassertEquals (" 3 3 ef eb 3 4 ea 9 1 9 0 2 bb 2 f 5 9 c 9 9 2 0 caa 6 cd ", ĠDay 1 0 . part 2 (" Ao C Ġ 2 0 1 7 ")) ĊĠĠĠ ĠassertEquals (" 3 ef be 7 8 a 8 d 8 2 f 2 9 9 7 9 0 3 1 a 4 aa 0 b 1 6 a 9 d ", ĠDay 1 0 . part 2 (" 1 , 2 , 3 ")) ĊĠĠĠ ĠassertEquals (" 6 3 9 6 0 8 3 5 b cdc 1 3 0 f 0 b 6 6 d 7 ff 4 f 6 a 5 a 8 e ", ĠDay 1 0 . part 2 (" 1 , 2 , 4 ")) ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġpart 2 () Ġ{ ĊĠĠĠ Ġanswer Equals ( Answer . DAY 1 0 _ PART 2 , ĊĠĠĠĠĠĠĠ ĠDay 1 0 . part 2 (" 2 2 7 , 1 6 9 , 3 , 1 6 6 , 2 4 6 , 2 0 1 , 0 , 4 7 , 1 , 2 5 5 , 2 , 2 5 4 , 9 6 , 3 , 9 7 , 1 4 4 ")) ĊĠ Ġ} Ċ Ċ }