z_value_2_filetest.gno
0.27 Kb ยท 22 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, "foo").ToBeNil()
16
17 println(output.String())
18}
19
20// Output:
21// Expected value to be nil
22// Got: foo