]> fbox.kageds.com Git - adventofcode.git/blob - 2022/go/day01/day01_test.go
move unit64 back to int
[adventofcode.git] / 2022 / go / day01 / day01_test.go
1 package day01
2
3 import (
4 "testing"
5
6 "github.com/stretchr/testify/assert"
7 )
8
9 func TestPart1(t *testing.T) {
10 r := Part1(`1000
11 2000
12 3000
13
14 4000
15
16 5000
17 6000
18
19 7000
20 8000
21 9000
22
23 10000`)
24 assert.Equal(t, 24000, r)
25 }
26
27 func TestPart2(t *testing.T) {
28 r := Part2(`1000
29 2000
30 3000
31
32 4000
33
34 5000
35 6000
36
37 7000
38 8000
39 9000
40
41 10000`)
42 assert.Equal(t, 45000, r)
43 }