Skip to content

Commit 921df28

Browse files
committed
cm: reduce test noise
1 parent 472bcf6 commit 921df28

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

cm/result_test.go

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package cm
22

33
import (
4-
"fmt"
54
"runtime"
65
"testing"
76
"unsafe"
@@ -177,9 +176,9 @@ func TestIssue95String(t *testing.T) {
177176
want := "hello"
178177
res := OK[stringResult](want)
179178
got := *res.OK()
180-
fmt.Printf("unsafe.Sizeof(res): %d\n", unsafe.Sizeof(res))
181-
fmt.Printf("got: %v (%d) want: %v (%d)\n",
182-
unsafe.StringData(got), len(got), unsafe.StringData(want), len(want))
179+
// fmt.Printf("unsafe.Sizeof(res): %d\n", unsafe.Sizeof(res))
180+
// fmt.Printf("got: %v (%d) want: %v (%d)\n",
181+
// unsafe.StringData(got), len(got), unsafe.StringData(want), len(want))
183182
if got != want {
184183
t.Errorf("*res.OK(): %v, expected %v", got, want)
185184
}
@@ -196,8 +195,8 @@ func TestIssue95Uint64(t *testing.T) {
196195
want := uint64(123)
197196
res := OK[uint64Result](want)
198197
got := *res.OK()
199-
fmt.Printf("unsafe.Sizeof(res): %d\n", unsafe.Sizeof(res))
200-
fmt.Printf("got: %v want: %v\n", got, want)
198+
// fmt.Printf("unsafe.Sizeof(res): %d\n", unsafe.Sizeof(res))
199+
// fmt.Printf("got: %v want: %v\n", got, want)
201200
if got != want {
202201
t.Errorf("*res.OK(): %v, expected %v", got, want)
203202
}
@@ -221,8 +220,8 @@ func TestIssue95Struct(t *testing.T) {
221220
want := stringStruct{s: "hello"}
222221
res := OK[structResult](want)
223222
got := *res.OK()
224-
fmt.Printf("unsafe.Sizeof(res): %d\n", unsafe.Sizeof(res))
225-
fmt.Printf("got: %v want: %v\n", got, want)
223+
// fmt.Printf("unsafe.Sizeof(res): %d\n", unsafe.Sizeof(res))
224+
// fmt.Printf("got: %v want: %v\n", got, want)
226225
if got != want {
227226
t.Errorf("*res.OK(): %v, expected %v", got, want)
228227
}
@@ -233,8 +232,8 @@ func TestIssue95BoolInt64(t *testing.T) {
233232
want := int64(1234567890)
234233
res := Err[boolInt64Result](1234567890)
235234
got := *res.Err()
236-
fmt.Printf("unsafe.Sizeof(res): %d\n", unsafe.Sizeof(res))
237-
fmt.Printf("got: %v want: %v\n", got, want)
235+
// fmt.Printf("unsafe.Sizeof(res): %d\n", unsafe.Sizeof(res))
236+
// fmt.Printf("got: %v want: %v\n", got, want)
238237
if got != want {
239238
t.Errorf("*res.OK(): %v, expected %v", got, want)
240239
}

0 commit comments

Comments
 (0)