1
0
mirror of https://github.com/fluencelabs/tendermint synced 2025-05-07 20:42:14 +00:00
2018-07-01 22:36:03 -04:00

15 lines
293 B
Go

package common
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestIntInSlice(t *testing.T) {
assert.True(t, IntInSlice(1, []int{1, 2, 3}))
assert.False(t, IntInSlice(4, []int{1, 2, 3}))
assert.True(t, IntInSlice(0, []int{0}))
assert.False(t, IntInSlice(0, []int{}))
}