Day03
This commit is contained in:
23
2025/gareth/day03/day03_test.go
Normal file
23
2025/gareth/day03/day03_test.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package day03
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestPart1(t *testing.T) {
|
||||
r := Part1(`987654321111111
|
||||
811111111111119
|
||||
234234234234278
|
||||
818181911112111`)
|
||||
assert.Equal(t, 357, r)
|
||||
}
|
||||
|
||||
func TestPart2(t *testing.T) {
|
||||
r := Part2(`987654321111111
|
||||
811111111111119
|
||||
234234234234278
|
||||
818181911112111`)
|
||||
assert.Equal(t, 3121910778619, r)
|
||||
}
|
||||
Reference in New Issue
Block a user