From 499b4789fbbc4cb6fd597d186c36f47d38c52631 Mon Sep 17 00:00:00 2001 From: Fendy Date: Thu, 13 Aug 2026 00:35:30 +0800 Subject: [PATCH] fix(cmd/ry): strengthen TestRawPrintFormat assertions --- cmd/ry/internal/output/output_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/ry/internal/output/output_test.go b/cmd/ry/internal/output/output_test.go index d4ee34b..d578e4e 100644 --- a/cmd/ry/internal/output/output_test.go +++ b/cmd/ry/internal/output/output_test.go @@ -82,6 +82,9 @@ func TestRawPrintFormat(t *testing.T) { if err := json.Unmarshal(buf.Bytes(), &parsed); err != nil { t.Fatalf("raw Print produced invalid JSON: %v\nbuf=%s", err, buf.String()) } + if len(parsed) != 1 || parsed[0].ID != "1" { + t.Errorf("raw Print content mismatch: %+v", parsed) + } } func TestSingleItem(t *testing.T) {