Search Apps Documentation Source Content File Folder Download Copy Actions Download

z_value_3_filetest.gno

0.33 Kb ยท 23 lines
 1package main
 2
 3import (
 4	"strings"
 5
 6	"gno.land/p/jeronimoalbi/expect"
 7)
 8
 9var (
10	output strings.Builder
11	t      = expect.MockTestingT(&output)
12)
13
14func main() {
15	expect.Value(t, nil).Not().ToBeNil()
16	expect.Value(t, (*int)(nil)).Not().ToBeNil()
17
18	println(output.String())
19}
20
21// Output:
22// Expected a non nil value
23// Expected a non nil value