Clean up testing code

Ugh on the error comparison.
This commit is contained in:
kortschak 2014-07-04 10:29:14 +09:30
parent eb3fd17e1d
commit 3f6cfc98d5
2 changed files with 49 additions and 29 deletions

View file

@ -119,6 +119,7 @@ func (t *Triple) Equals(o *Triple) bool {
// Pretty-prints a triple.
func (t *Triple) String() string {
// TODO(kortschak) String methods should generally not terminate in '\n'.
return fmt.Sprintf("%s -- %s -> %s\n", t.Subject, t.Predicate, t.Object)
}