This repository has been archived on 2024-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
|
package main
|
|
|
|
import (
|
|
"os"
|
|
"strings"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func Test(t *testing.T) {
|
|
inputBytes, _ := os.ReadFile("test.txt")
|
|
inputs := strings.Split(string(inputBytes), "\n")
|
|
|
|
assert.Equal(t, 5, puzzle1(inputs))
|
|
assert.Equal(t, 12, puzzle2(inputs))
|
|
}
|