mirror of
https://github.com/onyx-and-iris/aoc2023.git
synced 2024-11-22 10:20:48 +00:00
23 lines
365 B
Go
23 lines
365 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestOne(t *testing.T) {
|
|
//t.Skip("skipping test")
|
|
input := []string{
|
|
"1abc2",
|
|
"pqr3stu8vwx",
|
|
"a1b2c3d4e5f",
|
|
"treb7uchet",
|
|
}
|
|
retval, _ := one(input)
|
|
|
|
t.Run("Return the sum of all calibrated numbers, solution one", func(t *testing.T) {
|
|
assert.Equal(t, 142, retval)
|
|
})
|
|
}
|