diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-05-27 23:22:25 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-05-27 23:22:25 -0400 |
commit | 9d55d0b478f386aca48d8eeacbbfd4bd3b387bc0 (patch) | |
tree | 390f4cfc456baf633d40cd3f0e66fc27b13d769c /query_test.go | |
parent | 73f58c1e901082441b0ce9497b35cd9d80bd7f7d (diff) | |
download | getwtxt-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.go | 6 |
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) } |