jlelse
/
aoc21
Archived
1
Fork 0
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.
aoc21/05/main_test.go

18 lines
290 B
Go

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))
}