15 lines
279 B
Go
15 lines
279 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"strings"
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func Test(t *testing.T) {
|
||
|
input := `199,200,208,210,200,207,240,269,260,263`
|
||
|
assert.Equal(t, 7, puzzle1(strings.Split(input, ",")))
|
||
|
assert.Equal(t, 5, puzzle2(strings.Split(input, ",")))
|
||
|
}
|