package Ġorg . ad vent of code Ċ Ċ import Ġorg . junit . Assert . assertEquals Ċ import Ġorg . junit . Test Ċ Ċ class ĠDay 2 0 Test Ġ{ ĊĠ Ġprivate Ġval Ġd : ĠDay 2 0 Ġ= ĠDay 2 0 () ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġday 2 0 Div is ors () Ġ{ ĊĠĠĠ ĠassertEquals ( listOf ( 1 , 2 ), Ġd . all Div is ors ( 2 )) ĊĠĠĠ ĠassertEquals ( listOf ( 1 , 3 ), Ġd . all Div is ors ( 3 )) ĊĠĠĠ ĠassertEquals ( listOf ( 1 , 2 , 4 ), Ġd . all Div is ors ( 4 )) ĊĠĠĠ ĠassertEquals ( listOf ( 1 , 5 ), Ġd . all Div is ors ( 5 )) ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġday 2 0 Part 1 Example () Ġ{ ĊĠĠĠ ĠassertEquals ( 1 0 , Ġd . sum Div is ors ( 1 )) ĊĠĠĠ ĠassertEquals ( 3 0 , Ġd . sum Div is ors ( 2 )) ĊĠĠĠ ĠassertEquals ( 4 0 , Ġd . sum Div is ors ( 3 )) ĊĠĠĠ ĠassertEquals ( 7 0 , Ġd . sum Div is ors ( 4 )) ĊĠĠĠ ĠassertEquals ( 6 0 , Ġd . sum Div is ors ( 5 )) ĊĠĠĠ ĠassertEquals ( 2 9 0 0 0 0 0 0 , Ġd . sum Div is ors 2 ( 6 6 5 2 8 0 )) ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġday 2 0 Part 1 () Ġ{ ĊĠĠĠ ĠassertEquals ( 6 6 5 2 8 0 , Ġd . part 1 ( 2 9 0 0 0 0 0 0 , Ġ 6 6 0 0 0 0 , Ġ 6 7 0 0 0 0 )) ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġday 2 0 Part 2 () Ġ{ ĊĠĠĠ ĠassertEquals ( 7 0 5 6 0 0 , Ġd . part 2 ( 2 9 0 0 0 0 0 0 , Ġ 7 0 0 0 0 0 , Ġ 7 1 0 0 0 0 )) ĊĠ Ġ} Ċ Ċ }