Closed meling closed 9 years ago
func (s *Score) DumpScoreToStudent(t *testing.T) ==> func (s *Score) String() string
func (s *Score) DumpScoreToStudent(t *testing.T)
func (s *Score) String() string
Requires rewrite in test cases from sc.DumpScoreToStudent(t) to t.Log(sc) or fmt.Println(sc). I prefer the latter version.
sc.DumpScoreToStudent(t)
t.Log(sc)
fmt.Println(sc)
I've added the String() method, but haven't removed the Dump method. I'll close this once we've upgraded the test cases. We ought to do it before the next handout.
func (s *Score) DumpScoreToStudent(t *testing.T)
==>func (s *Score) String() string
Requires rewrite in test cases from
sc.DumpScoreToStudent(t)
tot.Log(sc)
orfmt.Println(sc)
. I prefer the latter version.