github.com/petermattis/pebble@v0.0.0-20190905164901-ab51a2166067/testdata/delete_range (about)

     1  define
     2  set a 1
     3  set b 2
     4  merge c 3
     5  del-range a c
     6  del d
     7  ----
     8  
     9  scan
    10  ----
    11  a#0,1:1
    12  b#1,1:2
    13  c#2,2:3
    14  d#4,0:
    15  
    16  scan range-del
    17  ----
    18  a#3,15:c
    19  
    20  clear
    21  ----
    22  
    23  define
    24  del-range a b
    25  del-range b c
    26  del-range a c
    27  del-range b d
    28  ----
    29  
    30  scan range-del
    31  ----
    32  a#2,15:b
    33  a#0,15:b
    34  b#3,15:c
    35  b#2,15:c
    36  b#1,15:c
    37  c#3,15:d
    38  
    39  clear
    40  ----
    41  
    42  define
    43  del-range a b
    44  ----
    45  
    46  scan range-del
    47  ----
    48  a#0,15:b
    49  
    50  define
    51  del-range b c
    52  ----
    53  
    54  scan range-del
    55  ----
    56  a#0,15:b
    57  b#1,15:c
    58  
    59  define
    60  del-range a c
    61  ----
    62  
    63  scan range-del
    64  ----
    65  a#2,15:b
    66  a#0,15:b
    67  b#2,15:c
    68  b#1,15:c
    69  
    70  define
    71  del-range b d
    72  ----
    73  
    74  scan range-del
    75  ----
    76  a#2,15:b
    77  a#0,15:b
    78  b#3,15:c
    79  b#2,15:c
    80  b#1,15:c
    81  c#3,15:d
    82  
    83  clear
    84  ----
    85  
    86  define
    87  set <nil> 1
    88  del-range <nil> d
    89  ----
    90  
    91  scan
    92  ----
    93  #0,1:1
    94  
    95  scan range-del
    96  ----
    97  #1,15:d