1
specs2 DataTable을 사용하여 컨테이너를 채우고 그 중 일부 조건을 확인하려고했습니다. 문제는 DataTable 이후의 matchers가 무시된다는 것입니다.데이터 테이블을 다른 matcher와 결합하는 방법은 무엇입니까?
class MySpec extends Specification with DataTables {
"A Container" should {
"after data is added container should have the following data" in new TestContainer {
"a" | "flag" | "d" |
100 ! 1 ! "abc" |
300 ! 1 ! "abc" |
200 ! 0 ! "xyz" |>
{ (a, flag, d) =>
container.add(Data(a, flag, d)) must not(throwA[Exception])
}
container.size must_== 3 // Ignored
1 must_== 2 // Ignored
}
}
}
제가 실종 어떻게 만드는 // Ignored
의 유효성을 검사 할로 라인을 표시하고 무엇을 알려 주시기 바랍니다 아래의 코드를 살펴 보자.
고마워요! 2.4-SNAPSHOT으로 예상대로 작동합니다. – andruha