From 55279938422060f30cd487173b98a651da075e3a Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Tue, 20 Oct 2026 14:25:29 +1100 Subject: [PATCH] lib: fix "go test" example names This backports commit 689f84213f711c253e852d59e1ffedca75b7b07c from the main branch (working on an unstable v0.4) to the v0.3 branch. --- lib/litonlylzma/example_test.go | 4 ++-- lib/zlibcut/example_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/litonlylzma/example_test.go b/lib/litonlylzma/example_test.go index 18250306..06d72297 100644 --- a/lib/litonlylzma/example_test.go +++ b/lib/litonlylzma/example_test.go @@ -21,7 +21,7 @@ import ( "github.com/google/wuffs/lib/litonlylzma" ) -func ExampleRoundTripLZMA() { +func Example_roundTripLZMA() { original := []byte("Hello world.\n") compressed, err := litonlylzma.FileFormatLZMA.Encode(nil, original) if err != nil { @@ -49,7 +49,7 @@ func ExampleRoundTripLZMA() { // Hello world. } -func ExampleRoundTripXz() { +func Example_roundTripXz() { original := []byte("Hello world.\n") compressed, err := litonlylzma.FileFormatXz.Encode(nil, original) if err != nil { diff --git a/lib/zlibcut/example_test.go b/lib/zlibcut/example_test.go index 2a196977..290742c2 100644 --- a/lib/zlibcut/example_test.go +++ b/lib/zlibcut/example_test.go @@ -25,7 +25,7 @@ import ( "github.com/google/wuffs/lib/zlibcut" ) -func ExampleCut() { +func Example() { const sonnet18 = "" + "Shall I compare thee to a summer’s day?\n" + "Thou art more lovely and more temperate.\n" +