summary refs log tree commit diff stats
path: root/query_test.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-27 23:22:25 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-27 23:22:25 -0400
commit9d55d0b478f386aca48d8eeacbbfd4bd3b387bc0 (patch)
tree390f4cfc456baf633d40cd3f0e66fc27b13d769c /query_test.go
parent73f58c1e901082441b0ce9497b35cd9d80bd7f7d (diff)
downloadgetwtxt-9d55d0b478f386aca48d8eeacbbfd4bd3b387bc0.tar.gz
parseQueryOut() no longer adds newline to last element, test updated to account for this
Diffstat (limited to 'query_test.go')
-rw-r--r--query_test.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/query_test.go b/query_test.go
index 835ba90..28fb32d 100644
--- a/query_test.go
+++ b/query_test.go
@@ -40,12 +40,6 @@ func Test_parseQueryOut(t *testing.T) {
 
 		conv := strings.Split(string(out), "\n")
 
-		// It likes to append an empty element to the end.
-		// I need to fix that in the library.
-		if len(conv) > 0 && conv[len(conv)-1] == "" {
-			conv = conv[:len(conv)-1]
-		}
-
 		if !reflect.DeepEqual(data, conv) {
 			t.Errorf("Pre- and Post- parseQueryOut data are inequal:\n%#v\n%#v\n", data, conv)
 		}