mirror of
https://github.com/zix99/traefik-lazyload.git
synced 2025-12-21 13:23:04 +01:00
13 lines
262 B
Go
13 lines
262 B
Go
package containers
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestSliceContainers(t *testing.T) {
|
|
assert.True(t, strSliceContains([]string{"hello", "thar"}, "thar"))
|
|
assert.False(t, strSliceContains([]string{"hello", "thar"}, "th"))
|
|
}
|