func checkErr(t *testing.T, name string, expLoc location.L, expMsg string, err location.Err) {
	t.Helper()
	if err.Msg != expMsg {
		t.Log(name)
		t.Log("\t: message should be: '" + expMsg + "'")
		t.Log("\t: message       was: '" + err.Msg + "'")
		t.Error("\t: unexpected Msg part of the error")
	}
	if err.Loc != expLoc {
		t.Log(name)
		t.Logf("\t: location should be: %s", expLoc)
		t.Logf("\t: location       was: %s", err.Loc)
		t.Error("\t: unexpected Loc part of the error")
	}
}
// checkErr confirms that the string is as expected and prints an error if
// not
checkErr confirms that the string is as expected and prints an error if
not
// checkErr confirms that the string is as expected and prints an error if // not
func checkErr(t *testing.T, name string, expLoc location.L, expMsg string, err location.Err) {
	t.Helper()
	if err.Msg != expMsg {
		t.Log(name)
		t.Log("\t: message should be: '" + expMsg + "'")
		t.Log("\t: message       was: '" + err.Msg + "'")
		t.Error("\t: unexpected Msg part of the error")
	}
	if err.Loc != expLoc {
		t.Log(name)
		t.Logf("\t: location should be: %s", expLoc)
		t.Logf("\t: location       was: %s", err.Loc)
		t.Error("\t: unexpected Loc part of the error")
	}
}
func checkErr ( t * testing . T , name string , expLoc location . L , expMsg string , err location . Err ) { t . Helper ( ) if err . Msg != expMsg { t . Log ( name ) t . Log ( " \t " + expMsg + " " ) t . Log ( " \t " + err . Msg + " " ) t . Error ( " \t " ) } if err . Loc != expLoc { t . Log ( name ) t . Logf ( " \t " , expLoc ) t . Logf ( " \t " , err . Loc ) t . Error ( " \t " ) } }
checkErr confirms that the string is as expected and prints an error if
not
checkErr confirms that the string is as expected and prints an error if not