【问题标题】:Equivalence partitioning, it this an incorrect example in a book?等价分区,这是书中不正确的例子吗?
【发布时间】:2013-04-21 09:07:46
【问题描述】:

我试图理解这个主题并从非常基本的主题(不是离散域)开始,我认为这是不正确的。

我还不能发布图片,所以描述如下:

Income is greater than 0 and lesser than 500 = tax 0  
Income is greater than 500 and lesser than 1300 = tax 30  
Income is greater than 1300 and lesser than 5000 = tax 40

它们为负数定义了无效类,对 0-500 和 500 到 1300 有效,对 1300 到 5000 有效。
我认为这是一个错误,无效类以 5000 为界并趋于无穷大。 我说的对吗?

【问题讨论】:

    标签: testing equivalence-classes


    【解决方案1】:

    正如您所提到的,我很确定这是一个错误。 有 3 个有效的输入类和两个无效的超出范围,即低于 0 或高于 5 000。

    【讨论】:

      猜你喜欢
      • 2019-05-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多