Skip to content

Commit fc9a0ce

Browse files
committed
assert test
1 parent 5a1958b commit fc9a0ce

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

samples/main.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ import (
66
"os"
77

88
"github.com/lainio/err2"
9+
"github.com/lainio/err2/assert"
910
)
1011

1112
var (
1213
mode = flag.String(
1314
"mode",
1415
"play",
15-
"runs the wanted playground: db, play, nil",
16+
"runs the wanted playground: db, play, nil, assert",
1617
)
1718
isErr = flag.Bool("err", false, "tells if we want to have an error")
1819
)
@@ -40,7 +41,13 @@ func main() {
4041
doMain2()
4142
case "play":
4243
doPlayMain()
44+
case "assert":
45+
doAssertMain()
4346
default:
4447
err2.Throwf("unknown (%v) playground given", *mode)
4548
}
4649
}
50+
51+
func doAssertMain() {
52+
assert.That(false)
53+
}

0 commit comments

Comments
 (0)