mirror of
https://github.com/onyx-and-iris/aoc2023.git
synced 2024-11-15 15:10:49 +00:00
17 lines
292 B
Go
17 lines
292 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestReverse(t *testing.T) {
|
|
//t.Skip("skipping test")
|
|
input := "eightwone3"
|
|
expected := "3enowthgie"
|
|
t.Run("Should reverse the string", func(t *testing.T) {
|
|
assert.Equal(t, expected, reverse(input))
|
|
})
|
|
}
|