reg/list_test.go
Jess Frazelle 64124a70bf
ordering travis
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-03-06 11:52:08 -05:00

20 lines
388 B
Go

package main
import (
"strings"
"testing"
)
func TestList(t *testing.T) {
out, err := run("ls")
if err != nil {
t.Fatalf("output: %s, error: %v", string(out), err)
}
expected := []string{"alpine latest", "busybox glibc, musl"}
for _, e := range expected {
if !strings.Contains(out, e) {
t.Logf("expected to contain: %s\ngot: %s", e, out)
}
}
}