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/02/main_test.go

15 lines
292 B
Go

package main
import (
"strings"
"testing"
"github.com/stretchr/testify/assert"
)
func Test(t *testing.T) {
input := `forward 5,down 5,forward 8,up 3,down 8,forward 2`
assert.Equal(t, 150, puzzle1(strings.Split(input, ",")))
assert.Equal(t, 900, puzzle2(strings.Split(input, ",")))
}