finish 2023
This commit is contained in:
17
2023/go/day15/day15_test.go
Normal file
17
2023/go/day15/day15_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package day15
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestPart1(t *testing.T) {
|
||||
r := Part1("rn=1,cm-,qp=3,cm=2,qp-,pc=4,ot=9,ab=5,pc-,pc=6,ot=7")
|
||||
require.Equal(t, 1320, r)
|
||||
}
|
||||
|
||||
func TestPart2(t *testing.T) {
|
||||
r := Part2("rn=1,cm-,qp=3,cm=2,qp-,pc=4,ot=9,ab=5,pc-,pc=6,ot=7")
|
||||
require.Equal(t, 145, r)
|
||||
}
|
||||
Reference in New Issue
Block a user