This commit is contained in:
Gareth
2024-12-02 12:52:40 +00:00
parent ab9bdc63b1
commit c133fe757c
6 changed files with 1114 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
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)
}