在学习使用ScalaCheck在scala中进行基于属性的测试时,我偶然发现了stackoverflow上的这个挑战。Find the smallest positive integer that does not occur in a given sequence 我想为这个问题写一个生成器驱动的基于属性的测试来检查我的程序的有效性,但似乎想不出如何写一个相关的测试用例。我知道我可以为这个用例编写一个基于表驱动属性的测试,但这限制了
( extention对象包含一个MyObject的键字段) 这是可行的,字段被正确地从ExtentionObject映射到MyObject,但是自动映射程序返回一个列表,该列表只返回'ExtensionObject我用于映射的代码如下: //first get the lists of MyObjects and ExtentionObjects
List<MyObject>