In the case of python share space with table match

After verifying the planning of the use cases added to a certain amount, they can already use cases regression, time-saving use case execution, and can find some potential bug.
Recently we met matching a space with a table in the preparation of the return script, to matching content simplified as follows:
Here Insert Picture Description
wherein: qbv_base_test cfg = pkt_len_64B and connected with a space, qbv_base_test cfg = pkt_len_65B connection with Table.
before adding copy all use cases, which are connected by a space.

  1. Add a space pattern matching
    Here Insert Picture Description
    the position indicated by the arrow a space above figure, with the result of this pattern matching is
    | Space | Pass |
    | Table | Fail |
  2. Pattern matching with \ S *
    Here Insert Picture Description
    | Space | Pass |
    | the Table | Pass |
  3. Pattern matching with \ t
    Here Insert Picture Description
    | Space | Fail |
    | the Table | Pass |

Summary: From the above comparison can be seen when the matching table, by \ t or \ s are possible matching; with "\ s " (which has a space), the individual not match the original table is also appreciated by spaces. composed, split into space + \ s * can match, but the reality could not match. solving it you

Published 22 original articles · won praise 3 · Views 753

Guess you like

Origin blog.csdn.net/weixin_39662684/article/details/105121283