func TestFailedTableMessages(t *testing.T) {
	table := []struct{ val int }{
		{0}, {1}, {2},
	}
	for i, example := range table {
		st.Expect(t, example.val, 1, i)
	}
	for _, example := range table {
		st.Assert(t, example.val, 1)
	}
}
Prints failure output, including the correct line number and example index.
package readme
import (
	"testing"
	"github.com/nbio/st"
)
func TestExample(t *testing.T) {
	st.Expect(t, "a", "a")
	st.Reject(t, 42, int64(42))
	st.Assert(t, "t", "t")
	st.Refute(t, 99, int64(99))
}
func TestTableExample(t *testing.T) {
	examples := []struct{ a, t string }{
		{"first", "first"},
		{"second", "second"},
	}
	for i, ex := range examples {
		st.Expect(t, ex, ex, i)
		st.Reject(t, ex, &ex, i)
	}
	for _, ex := range examples {
		st.Assert(t, ex, ex)
		st.Refute(t, ex, &ex)
	}
}
func TestFailedExpectationMessages(t *testing.T) {
	t.Log("Tests purposely fail to demonstrate output")
	st.Expect(t, 1, 2)
	st.Reject(t, "same", "same")
	var typedNil *string
	st.Expect(t, typedNil, nil)  
}
func TestFailedAssertMessage(t *testing.T) {
	type chicken struct{}
	type egg struct{}
	st.Assert(t, egg{}, chicken{})
}
func TestFailedRefuteMessage(t *testing.T) {
	st.Reject(t, 42, 7*6)
}