GoConvey test assertions without the BDD framework
package main
import (
. "github.com/kdar/cassert"
"testing"
)
func TestSomething(t *testing.T) {
So(t, 5, ShouldEqual, 5)
So(t, true, ShouldBeTrue)
}
package main
import (
"github.com/kdar/cassert"
"testing"
)
func TestSomething(t *testing.T) {
So := cassert.NewSo(t)
So(5, cassert.ShouldEqual, 5)
So(true, cassert.ShouldBeTrue)
}