E4132#
测试参数无效。只允许一个类型为 @test.Test 的参数。
错误示例#
test (name : String) {
ignore(name)
}
建议#
目前还不支持将自定义参数传递给测试,您只能使用预定义的 @test.Test 类型。
test (it : @test.Test) {
ignore(it)
@test.assert_eq(1 + 1, 2)
}
或者您可以删除不需要的参数:
test {
@test.assert_eq(3 + 3, 6)
}