【问题标题】: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"*/) 【讨论】: