chore: cleanup and add tools

This commit is contained in:
xuu
2024-10-30 13:32:44 -06:00
parent 04bbac8559
commit e046a6c06d
11 changed files with 325 additions and 53 deletions
+13
View File
@@ -42,3 +42,16 @@ func TestTranspose(t *testing.T) {
},
)
}
func TestPairwise(t *testing.T) {
is := is.New(t)
is.Equal(
aoc.Pairwise([]int{1, 2, 3, 4}),
[][2]int{
{1, 2},
{2, 3},
{3, 4},
},
)
}