//Test tests if there is an error and if there is, it fatally fails the current test.
Test tests if there is an error and if there is, it fatally fails the current test.
// Test tests if there is an error and if there is it fatally fails the current test .
func (err Error) Test(t State) {
	t.Helper()
	if err != nil {
		t.Fatalf("%v", err[0])
	}
}
func ( err Error ) Test ( t State ) { t . Helper ( ) if err != nil { t . Fatalf ( " " , err [ 0 ] ) } }
Test tests if there is an error and if there is, it fatally fails the current test.
Test tests if there is an error and if there is it fatally fails the current test .