Clean up testing code
Ugh on the error comparison.
This commit is contained in:
parent
eb3fd17e1d
commit
3f6cfc98d5
2 changed files with 49 additions and 29 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue