zoukankan      html  css  js  c++  java
  • 【RF库Collections测试】Lists Should Be Equal

    Name:
    Lists Should Be Equal
    Source:
    Collections <test library>
    Arguments:
    [ list1 | list2 | msg=None | values=True | names=None ]
    Fails if given lists are unequal.
    The keyword first verifies that the lists have equal lengths, and then it checks are all their values equal. Possible differences between the values are listed in the default error message like `Index 4: ABC != Abc`.
    The error message can be configured using `msg` and `values` arguments:

    If `msg` is not given, the default error message is used.

    If `msg` is given and `values` is either Boolean False or a string 'False' or 'No Values', the error message is simply `msg`.

    Otherwise the error message is `msg` + 'new line' + default.
    Optional `names` argument (new in 2.6) can be used for naming the indices shown in the default error message. It can either be a list of names matching the indices in the lists or a dictionary where keys are indices that need to be named. It is not necessary to name all of the indices. When using a dictionary, keys can be either integers or strings that can be converted to integers.

    场景1:

    场景2:

  • 相关阅读:
    .ssh/config 文件的解释算法及配置原则
    不fq安装 golang tools
    iOS 组件化的几篇文章
    第一把机械键盘 ikbc C-87
    我推荐的 Java Web 学习路线
    【吐槽向】iOS 中的仿射变换
    Spring 对缓存的抽象
    Spring 事务管理笔记
    Swift 笔记汇总
    Java 类加载器
  • 原文地址:https://www.cnblogs.com/apple2016/p/7050939.html
Copyright © 2011-2022 走看看