github.com/cheshirekow/buildtools@v0.0.0-20200224190056-5d637702fe81/build/testdata/016.bzl.golden (about)

     1  # 1-element tuple with trailing comma must preserve it.
     2  
     3  x = (1,)
     4  
     5  y = (
     6      1,
     7  )
     8  
     9  foo((1,))
    10  
    11  bar(1)
    12  
    13  baz([1])
    14  
    15  foo((
    16      1,
    17  ))
    18  
    19  bar(
    20      1,
    21  )
    22  
    23  baz([
    24      1,
    25  ])
    26  
    27  x = (1, 2, -3)
    28  
    29  y = (
    30      1,
    31      2,
    32      -3,
    33  )
    34  
    35  foo((1, 2))
    36  
    37  bar(1, 2)
    38  
    39  baz([1, 2])
    40  
    41  foo((
    42      1,
    43      2,
    44  ))
    45  
    46  foo((1, 2, [3]))
    47  
    48  bar(
    49      1,
    50      2,
    51  )
    52  
    53  baz([
    54      1,
    55      2,
    56  ])
    57  
    58  # Implicit tuples
    59  
    60  True, False = False, True
    61  
    62  (a, b), c = d
    63  
    64  c = d, (e, f)