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

     1  # Test that single-line calls with no named arguments use the compact form.
     2  # Single-line tuples are also okay.
     3  
     4  str.rewrite(".", "/")
     5  
     6  str.rewrite(
     7      before = ".",
     8      after = "/",
     9  )
    10  
    11  x = (1, 2, 3)
    12  
    13  x = (1, "2", -3, [], {}, (), not b)
    14  
    15  y = (
    16      1,
    17      [2],
    18  )
    19  
    20  y = (
    21      1,
    22      {2: 3},
    23  )
    24  
    25  y = (
    26      1,
    27      (2, 3),
    28  )
    29  
    30  y = (
    31      1,
    32      -(a + b),
    33  )
    34  
    35  y = (
    36      1,
    37      not (a or b),
    38  )
    39  
    40  x = (
    41      1,
    42      2,
    43      3,
    44  )
    45  
    46  x = (
    47      1,
    48      2,
    49      3,
    50      4,
    51  )
    52  
    53  d.get(key, [])
    54  
    55  myfunc(
    56      1,
    57      2,
    58      foo(
    59          x,
    60          key = y,
    61      ),
    62  )
    63  
    64  myfunc(
    65      1,
    66      2,
    67      foo(
    68          x,
    69          key = y,
    70      ),
    71  )
    72  
    73  myfunc(
    74      1,
    75      2,
    76      foo(
    77          x,
    78          key = y,
    79      ),
    80  )
    81  
    82  myfunc(
    83      1,
    84      2,
    85      foo(
    86          x,
    87          key = y,
    88      ),
    89  )