README ¶ Assert This package provides an assert function for Go. It's designed to work like assert in C. Example package my_test import "github.com/tidwall/assert" func TestMyThing(t *testing.T) { assert.Assert("hello" == "jello") } This will print the following message and abort the program. Assertion failed: ("hello" == "jello"), function TestMyThing, file my_test.go, line 6. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Assert(expression bool) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Assert ¶ func Assert(expression bool) Assert aborts the program if assertion is false. Types ¶ This section is empty. Source Files ¶ View all Source files assert.go Click to show internal directories. Click to hide internal directories.