From 2bcf60230adc0d6a4e4c0ca9cdc1f79b44e8ee7f Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Thu, 28 Mar 2019 17:39:25 +0100 Subject: [PATCH] CSV Tokenizer - add additional test to guard against quote parsing regressions --- gnucash/import-export/csv-imp/test/test-tokenizer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gnucash/import-export/csv-imp/test/test-tokenizer.cpp b/gnucash/import-export/csv-imp/test/test-tokenizer.cpp index 961ac65cd3..2a861ae6b4 100644 --- a/gnucash/import-export/csv-imp/test/test-tokenizer.cpp +++ b/gnucash/import-export/csv-imp/test/test-tokenizer.cpp @@ -177,6 +177,7 @@ static tokenize_csv_test_data comma_separated [] = { { "Test\\ with backslash,nextfield", 2, { "Test\\ with backslash","nextfield",NULL,NULL,NULL,NULL,NULL,NULL } }, { "Test with \\\" escaped quote,nextfield", 2, { "Test with \" escaped quote","nextfield",NULL,NULL,NULL,NULL,NULL,NULL } }, { "Test with \"\" escaped quote,nextfield", 2, { "Test with \" escaped quote","nextfield",NULL,NULL,NULL,NULL,NULL,NULL } }, + { "\"Unescaped quote test\",nextfield", 2, { "Unescaped quote test","nextfield",NULL,NULL,NULL,NULL,NULL,NULL } }, { NULL, 0, { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL } }, };