much better day13 after looking at others
This commit is contained in:
27
2022/go/day12/day12_test.go
Normal file
27
2022/go/day12/day12_test.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package day12
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestPart1(t *testing.T) {
|
||||
r := Part1(
|
||||
`Sabqponm
|
||||
abcryxxl
|
||||
accszExk
|
||||
acctuvwj
|
||||
abdefghi`)
|
||||
require.Equal(t, 31, r)
|
||||
}
|
||||
|
||||
func TestPart2(t *testing.T) {
|
||||
r := Part2(
|
||||
`Sabqponm
|
||||
abcryxxl
|
||||
accszExk
|
||||
acctuvwj
|
||||
abdefghi`)
|
||||
require.Equal(t, 29, r)
|
||||
}
|
||||
Reference in New Issue
Block a user