From fedfb6d84c66ca906368fa4fb04df9b537f18ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=BE=99=200668001470?= Date: Thu, 12 Mar 2026 23:27:29 +0800 Subject: [PATCH] test: cover normalized no-banner env values --- cmd/picoclaw/main_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/picoclaw/main_test.go b/cmd/picoclaw/main_test.go index 21106e734..ab61ce0dc 100644 --- a/cmd/picoclaw/main_test.go +++ b/cmd/picoclaw/main_test.go @@ -80,9 +80,9 @@ func TestShouldPrintBanner(t *testing.T) { assert.False(t, shouldPrintBanner([]string{"picoclaw", "agent"}, true)) }) - t.Run("common truthy env values disable banner", func(t *testing.T) { - for _, value := range []string{"true", "yes", "on"} { - t.Run(value, func(t *testing.T) { + t.Run("truthy env values disable banner after normalization", func(t *testing.T) { + for _, value := range []string{"true", "yes", "on", " TrUe ", "\tON\n"} { + t.Run(fmt.Sprintf("%q", value), func(t *testing.T) { t.Setenv(noBannerEnv, value) assert.False(t, shouldPrintBanner([]string{"picoclaw", "agent"}, true)) })