cuelang.org/go@v0.10.1/pkg/encoding/csv/testdata/gen.txtar (about) 1 # generated from the original tests. 2 # Henceforth it may be nicer to group tests into separate files. 3 -- in.cue -- 4 import "encoding/csv" 5 6 t1: csv.Decode("1,2,3\n4,5,6") 7 t2: csv.Encode([[1, 2, 3], [4, 5], [7, 8, 9]]) 8 t3: csv.Encode([["a", "b"], ["c"]]) 9 -- out/csv -- 10 t1: [["1", "2", "3"], ["4", "5", "6"]] 11 t2: """ 12 1,2,3 13 4,5 14 7,8,9 15 16 """ 17 t3: """ 18 a,b 19 c 20 21 """