summaryrefslogtreecommitdiffstats
path: root/test/csv/double-quotes
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:48:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:48:59 +0000
commitc484829272cd13a738e35412498e12f2c9a194ac (patch)
treea1f5ec09629ee895bd3963fa8820b45f2f4c574b /test/csv/double-quotes
parentInitial commit. (diff)
downloadliborcus-f5bf3877c7cf3538ca1337452cf57cc99b0ace0e.tar.xz
liborcus-f5bf3877c7cf3538ca1337452cf57cc99b0ace0e.zip
Adding upstream version 0.19.2.upstream/0.19.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/csv/double-quotes')
-rw-r--r--test/csv/double-quotes/check.txt6
-rw-r--r--test/csv/double-quotes/input.csv3
2 files changed, 9 insertions, 0 deletions
diff --git a/test/csv/double-quotes/check.txt b/test/csv/double-quotes/check.txt
new file mode 100644
index 0000000..7bf03e1
--- /dev/null
+++ b/test/csv/double-quotes/check.txt
@@ -0,0 +1,6 @@
+data/0/0:string:"\"single literal quote\""
+data/0/1:string:"\"\"double literal quote\"\""
+data/0/2:string:"\"\"\"triple literal quote\"\"\""
+data/1/0:numeric:1
+data/1/1:numeric:2
+data/1/2:numeric:3
diff --git a/test/csv/double-quotes/input.csv b/test/csv/double-quotes/input.csv
new file mode 100644
index 0000000..3c8ee50
--- /dev/null
+++ b/test/csv/double-quotes/input.csv
@@ -0,0 +1,3 @@
+"""single literal quote""","""""double literal quote""""","""""""triple literal quote"""""""
+1,2,3
+