summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcopilot-swe-agent[bot] <[email protected]>2026-03-08 03:33:03 +0000
committercopilot-swe-agent[bot] <[email protected]>2026-03-08 03:33:03 +0000
commit16b530c5dcb1ca9acf96f8dec27add4999ac0bbc (patch)
treedd4d4db4792ab2096a648e146c9a73151002e22c
parent19c8c8d921e386451a5e8a7ca9493407d6eaa25f (diff)
Verify exact output strings in TestListInputConverter and TestListOutputConvertercopilot/write-unit-tests-for-lib-package
Co-authored-by: Loyalsoldier <[email protected]>
-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)
}
}