github.com/joomcode/cue@v0.4.4-0.20221111115225-539fe3512047/encoding/protobuf/textproto/testdata/decoder/list.txtar (about) 1 // test of non-standard list 2 3 // TODO: there are many missing comments, but these really are consequences 4 // of the buggy textpbfmt library. 5 6 -- list.cue -- 7 empty1: [...int] 8 empty2: [...int] 9 10 int1: [...int] 11 int2: [...int] 12 int3: [...int] 13 14 string1: [...string] 15 16 float1: [...number] 17 -- input.textproto -- 18 empty1: [] 19 empty2: [ # foo 20 ] 21 22 int1: [1, 2] 23 int2: [1 2] # omitting commas okay 24 int3: [ 25 1 # omitting comma okay 26 2 27 ] 28 29 string1: [ 30 "a", # omitting comma NOT supported 31 "b" 32 ] 33 34 float1: [ 1e+2 1. 0] 35 -- out/decode -- 36 empty1: [] 37 empty2: [ // foo 38 ] 39 int1: [1, 2] 40 int2: [1, 2] // omitting commas okay 41 int3: [1, // omitting comma okay 42 2] 43 string1: ["a", // omitting comma NOT supported 44 "b"] 45 float1: [1e+2, 1.0, 0]