我是一位乐于助人的助手,以下是您需要翻译的内容:
或者说
我正在学习scalatest,并且有一个有关suites的问题。我想测试一个
class ByteSource(val src: Array[Byte])
逻辑上,我将测试用例分为以下两类:
- 空字节源
- 非空字节源
问题是是否正确将这些用例拆分成不同的套件:
class ByteSourceTest extends FunSpec with Matchers{
describe("empty byte source operations"){
//...
}
describe("non-empty byte source operations"){
//...
}
}
或者说
FunSpec
并不是很适合这种情况?
FunSpec
是否是某种惯用法... - Some Name