我是靠谱客的博主 土豪店员,最近开发中收集的这篇文章主要介绍[转] org.scalatest.FunSuite Scala Examples - Scala FunSuite 测试的例子org.scalatest.FunSuite Scala Examples,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
[From] https://www.programcreek.com/scala/org.scalatest.FunSuite
org.scalatest.FunSuite Scala Examples
The following code examples show how to use org.scalatest.FunSuite. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to product more good examples.
+
Save this class
Example 1
Project: train-stamp-rally Author: ponkotuy File: MissionTimeSuite.scala View Source Project (license) | 7 votes |
package utils
import org.scalatest.FunSuite class MissionTimeSuite extends FunSuite { test("MissionTime.addMinutes") { assert(MissionTime(1, 6, 1).addMinutes(15) === MissionTime(1, 6, 16)) assert(MissionTime(1, 6, 23).addMinutes(-10) === MissionTime(1, 6, 13)) } test("MissionTime.addMinutes if carry") { assert(MissionTime(1, 6, 59).addMinutes(3) === MissionTime(1, 7, 2)) assert(MissionTime(1, 7, 3).addMinutes(-5) === MissionTime(1, 6, 58)) } test("MissionTime.addMinutes if over hour") { assert(MissionTime(1, 23, 44).addMinutes(25) === MissionTime(2, 0, 9)) assert(MissionTime(2, 0, 15).addMinutes(-18) === MissionTime(1, 23, 57)) } test("MissionTime.fromString") { assert(MissionTime.fromString("1-06:15") === Some
转载于:https://www.cnblogs.com/pekkle/p/10150400.html
最后
以上就是土豪店员为你收集整理的[转] org.scalatest.FunSuite Scala Examples - Scala FunSuite 测试的例子org.scalatest.FunSuite Scala Examples的全部内容,希望文章能够帮你解决[转] org.scalatest.FunSuite Scala Examples - Scala FunSuite 测试的例子org.scalatest.FunSuite Scala Examples所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复