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

     1  bar = "bar"
     2  
     3  # This gets an empty expr_opt in the parser, causing a nil to appear.
     4  b = bar[:-2]
     5  
     6  # Test that slices and partial slices are parsed properly
     7  f = foo[-1:-2:-3]
     8  
     9  f = foo[1::]
    10  
    11  f = foo[:1:]
    12  
    13  f = foo[::1]
    14  
    15  f = foo[::]
    16  
    17  f = foo[:]