diff options
Diffstat (limited to 'libpod/util_test.go')
-rw-r--r-- | libpod/util_test.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libpod/util_test.go b/libpod/util_test.go index 7b9d19a43..70e989e1a 100644 --- a/libpod/util_test.go +++ b/libpod/util_test.go @@ -5,19 +5,6 @@ import ( "testing" ) -var ( - sliceData = []string{"one", "two", "three", "four"} -) - -func TestStringInSlice(t *testing.T) { - // string is in the slice - assert.True(t, StringInSlice("one", sliceData)) - // string is not in the slice - assert.False(t, StringInSlice("five", sliceData)) - // string is not in empty slice - assert.False(t, StringInSlice("one", []string{})) -} - func TestRemoveScientificNotationFromFloat(t *testing.T) { numbers := []float64{0.0, .5, 1.99999932, 1.04e+10} results := []float64{0.0, .5, 1.99999932, 1.04} |