Just my learning go snippets
package palindrome

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestSingle(t *testing.T) {
	for _, tc := range testcases {
		t.Run("Single", func(t *testing.T) {
			//t.Parallel()
			assert.Equal(t, tc.output, Single(tc.input))
		})
	}
}

func TestConcurrent(t *testing.T) {
	for _, tc := range testcases {
		t.Run("Concurrent", func(t *testing.T) {
			//t.Parallel()
			assert.Equal(t, tc.output, Concurrent(tc.input))
		})
	}
}

func BenchmarkSingle(b *testing.B) {
	for n := 0; n < b.N; n++ {
		for _, tc := range testcases {
			Single(tc.input)
		}
	}
}

func BenchmarkConcurrent(b *testing.B) {
	for n := 0; n < b.N; n++ {
		for _, tc := range testcases {
			Concurrent(tc.input)
		}
	}
}