Add tests/20_csv_quotes.claro from Claro v1.17.26 zip

This commit is contained in:
RayPals
2026-06-01 00:52:21 +02:00
parent 3418af628c
commit 52ef7d8b6d
+19
View File
@@ -0,0 +1,19 @@
IMPORT "lib/csv.claro" AS csv
SET t TO "a,b\n\"x,y\",z\n1,\"hello\"\n"
CALL csv.read WITH t, ","
SET rows TO RESULT
GET rows AT 2 AS r2
GET r2 AT 1 AS f1
SAY f1
GET r2 AT 2 AS f2
SAY f2
GET r2 AT 3 AS f3
SAY f3
# write it back (should quote the x,y field)
CALL csv.write WITH rows, ","
SAY RESULT