【问题标题】:How to assert expected value should be greater, equal values to the actual value using Spark ScalaTest如何使用 Spark ScalaTest 断言预期值应该更大,等于实际值
【发布时间】:2019-05-08 11:38:41
【问题描述】:

我正在使用 scala 测试编写 Spark 测试应用程序,希望断言我的预期结果应该大于或等于实际结果。

【问题讨论】:

    标签: scala scalatest


    【解决方案1】:
    assert (expected >= myMethod/*, "This is the first of the annoying tests"*/)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-09-23
      • 2020-10-09
      • 1970-01-01
      • 2018-03-25
      • 1970-01-01
      • 1970-01-01
      • 2021-04-19
      相关资源
      最近更新 更多