mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 08:32:11 +01:00
lib: fix "go test" example names
This backports commit 689f84213f from the
main branch (working on an unstable v0.4) to the v0.3 branch.
This commit is contained in:
1 parent
32a23a9bb5
commit
5527993842
2 files changed
+3
-3
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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" +
|
||||
|
||||
Reference in new issue
Block a user