func ResultWriter(w io.Writer, results []TestCase) {
	var passMsg = map[bool]string{true: "PASS", false: "FAIL"}
	for _, result := range results {
		fmt.Fprintf(w, "=== %s: %s\n", passMsg[result.Pass], result.Id)
		if !result.Pass {
			fmt.Fprintf(w, "\t %s\n", result.Fail)
		}
	}
}
// ResultWriter writes testcase results to a writer
ResultWriter writes testcase results to a writer
// ResultWriter writes testcase results to a writer
func ResultWriter(w io.Writer, results []TestCase) {
	var passMsg = map[bool]string{true: "PASS", false: "FAIL"}
	for _, result := range results {
		fmt.Fprintf(w, "=== %s: %s\n", passMsg[result.Pass], result.Id)
		if !result.Pass {
			fmt.Fprintf(w, "\t %s\n", result.Fail)
		}
	}
}
func ResultWriter ( w io . Writer , results [ ] TestCase ) { var passMsg = map [ bool ] string { true : " " , false : " " } for _ , result := range results { fmt . Fprintf ( w , " \n " , passMsg [ result . Pass ] , result . Id ) if ! result . Pass { fmt . Fprintf ( w , " \t \n " , result . Fail ) } } }
ResultWriter writes testcase results to a writer
ResultWriter writes testcase results to a writer