Remove terminal newline from quad.Quad stringer
This is the conventional implementation of a fmt.Stringer. Also went through and fixed up some lint.
This commit is contained in:
parent
a81005ba21
commit
b17334ea36
6 changed files with 37 additions and 39 deletions
|
|
@ -26,7 +26,7 @@ func TestSingleIterator(t *testing.T) {
|
|||
result := StringResultTreeEvaluator(all)
|
||||
expected := "(1)\n(2)\n(3)\n"
|
||||
if expected != result {
|
||||
t.Errorf("Expected \"%s\" got \"%s\"", expected, result)
|
||||
t.Errorf("Expected %q got %q", expected, result)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -40,6 +40,6 @@ func TestAndIterator(t *testing.T) {
|
|||
result := StringResultTreeEvaluator(and)
|
||||
expected := "(3 (3) (3))\n"
|
||||
if expected != result {
|
||||
t.Errorf("Expected \"%s\" got \"%s\"", expected, result)
|
||||
t.Errorf("Expected %q got %q", expected, result)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue