summaryrefslogtreecommitdiff
path: root/lib/converter_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/converter_test.go')
-rw-r--r--lib/converter_test.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/converter_test.go b/lib/converter_test.go
index 6cb5ac08..a2ba102b 100644
--- a/lib/converter_test.go
+++ b/lib/converter_test.go
@@ -64,8 +64,9 @@ func TestListInputConverter(t *testing.T) {
buf.ReadFrom(r)
output := buf.String()
- if len(output) == 0 {
- t.Error("ListInputConverter should produce output")
+ expected := "All available input formats:\n - test-ic (Test Input)\n"
+ if output != expected {
+ t.Errorf("ListInputConverter output = %q, want %q", output, expected)
}
}
@@ -91,7 +92,8 @@ func TestListOutputConverter(t *testing.T) {
buf.ReadFrom(r)
output := buf.String()
- if len(output) == 0 {
- t.Error("ListOutputConverter should produce output")
+ expected := "All available output formats:\n - test-oc (Test Output)\n"
+ if output != expected {
+ t.Errorf("ListOutputConverter output = %q, want %q", output, expected)
}
}