Files
adventofcode/2024/gareth/day01/day01_test.go
Gareth c133fe757c Day01
2024-12-02 12:52:40 +00:00

28 lines
294 B
Go

package day01
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestPart1(t *testing.T) {
r := Part1(`3 4
4 3
2 5
1 3
3 9
3 3`)
assert.Equal(t, 11, r)
}
func TestPart2(t *testing.T) {
r := Part2(`3 4
4 3
2 5
1 3
3 9
3 3`)
assert.Equal(t, 31, r)
}