blob: 3f13470f0b2b7ef703a7f085875940a7d18d5935 [file] [log] [blame]
# generated from the original tests.
# Henceforth it may be nicer to group tests into separate files.
-- in.cue --
import "encoding/csv"
t1: csv.Decode("1,2,3\n4,5,6")
t2: csv.Encode([[1,2,3],[4,5],[7,8,9]])
t3: csv.Encode([["a", "b"], ["c"]])
-- out/csv --
t1: [["1", "2", "3"], ["4", "5", "6"]]
t2: """
1,2,3
4,5
7,8,9
"""
t3: """
a,b
c
"""