Add the `","","' test - csvtofsv - Convert CSV to FSV (`fs' (0x1c) as FS and `rs' (0x1e) as RS)
(HTM) hg clone https://bitbucket.org/iamleot/csvtofsv
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) changeset e914847adc8fdbb923f91d3256384ef617b6cf73
(DIR) parent c4a06b0cfc35a2777bdc8ea14f43e45dd31ce6c5
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 25 Jun 2019 23:46:59
Add the `","","' test
Diffstat:
TODO.txt | 5 +----
t/03.csv | 2 ++
t/03.fsv | 1 +
t/Makefile | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
---
diff -r c4a06b0cfc35 -r e914847adc8f TODO.txt
--- a/TODO.txt Tue Jun 25 23:43:12 2019 +0200
+++ b/TODO.txt Tue Jun 25 23:46:59 2019 +0200
@@ -2,7 +2,4 @@
- `\r' should be always ignored
- Trailing EOF without a `\n' or `\r\n' is not gracefully handled
-- Add more tests and tests funny things like `","","' (according RFC
- 4180 this should be parsed as a single field because: `If fields are
- not enclosed with double quotes, then double quotes may not appear
- inside the fields.')
+- Add more tests and recheck RFC 4180
diff -r c4a06b0cfc35 -r e914847adc8f t/03.csv
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/t/03.csv Tue Jun 25 23:46:59 2019 +0200
@@ -0,0 +1,2 @@
+one comma a quote and another comma
+","","
diff -r c4a06b0cfc35 -r e914847adc8f t/03.fsv
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/t/03.fsv Tue Jun 25 23:46:59 2019 +0200
@@ -0,0 +1,1 @@
+one comma a quote and another comma
,",
\ No newline at end of file
diff -r c4a06b0cfc35 -r e914847adc8f t/Makefile
--- a/t/Makefile Tue Jun 25 23:43:12 2019 +0200
+++ b/t/Makefile Tue Jun 25 23:46:59 2019 +0200
@@ -1,4 +1,4 @@
-TESTS= 01 02
+TESTS= 01 02 03
CSVTOFSV?= ../csvtofsv