...
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 --
7empty1: [...int]
8empty2: [...int]
9
10int1: [...int]
11int2: [...int]
12int3: [...int]
13
14string1: [...string]
15
16float1: [...number]
17-- input.textproto --
18empty1: []
19empty2: [# foo
20]
21
22int1: [1, 2]
23int2: [1 2] # omitting commas okay
24int3: [
25 1 # omitting comma okay
26 2
27]
28
29string1: [
30 "a", # omitting comma NOT supported
31 "b"
32]
33
34float1: [ 1e+2 1. 0]
35-- out/decode --
36empty1: []
37empty2: [// foo
38]
39int1: [1, 2]
40int2: [1, 2] // omitting commas okay
41int3: [1, // omitting comma okay
42 2]
43string1: ["a", // omitting comma NOT supported
44 "b"]
45float1: [1e+2, 1.0, 0]
View as plain text