improvements to integration test organization

This commit is contained in:
Daniel Smith
2014-07-01 13:30:19 -07:00
parent da61f90b08
commit 50bbf39925
3 changed files with 65 additions and 29 deletions

View File

@@ -17,6 +17,7 @@ limitations under the License.
package util
import (
"reflect"
"testing"
)
@@ -51,3 +52,10 @@ func TestNewStringSet(t *testing.T) {
t.Errorf("Unexpected contents: %#v", s)
}
}
func TestStringSetList(t *testing.T) {
s := NewStringSet("z", "y", "x", "a")
if !reflect.DeepEqual(s.List(), []string{"a", "x", "y", "z"}) {
t.Errorf("List gave unexpected result: %#v", s.List())
}
}