chore(day17): add open list for A*
Some checks failed
Go Bump / bump (push) Successful in 8s
Go Test / build (push) Failing after 4m29s

This commit is contained in:
xuu
2024-01-01 14:12:53 -07:00
parent adc01f4df9
commit eb1eaaab43
3 changed files with 26 additions and 19 deletions

View File

@@ -13,8 +13,8 @@ import (
//go:embed example.txt
var example []byte
// //go:embed input.txt
// var input []byte
//go:embed input.txt
var input []byte
func TestExample(t *testing.T) {
is := is.New(t)
@@ -28,14 +28,14 @@ func TestExample(t *testing.T) {
is.Equal(result.valuePT2, 94)
}
// func TestSolution(t *testing.T) {
// is := is.New(t)
// scan := bufio.NewScanner(bytes.NewReader(input))
func TestSolution(t *testing.T) {
is := is.New(t)
scan := bufio.NewScanner(bytes.NewReader(input))
// result, err := run(scan)
// is.NoErr(err)
result, err := run(scan)
is.NoErr(err)
// t.Log(result)
// is.Equal(result.valuePT1, 843)
// is.Equal(result.valuePT2, 1017)
// }
t.Log(result)
is.Equal(result.valuePT1, 843)
is.Equal(result.valuePT2, 1017)
}