unison/unison-src/tests/methodical/literals.u
Hans Schuster 3ee004bd72 Allow redundant commas in lists
Allows multiple commas leading, trailing and between elements (Issue 1841)
2021-03-24 19:35:12 +01:00

32 lines
369 B
Plaintext

-- LITERALS
ln = 10
li = +10
lf = 10.0
lt = "text"
lc = ?ひ
lb = true
sn = [1,2,3,4,5,6,ln]
-- Allow redundant commas in lists #1841
s = [,,,,,,]
stn = [,,,(1,2),,,(3,4),(5,6),,,,]
sc =
[
,
-- ?d
,
?*
,
?1
,
, ?§, ?°,
?;,
,
, ,
]
-- Make sure we can compile all literals
> (ln, li, lf, lt, lc, lb, sn, s, stn, sc)