3
Canopy API를 사용하여 "컨텍스트"테스트를 형식화하는 방법에 관한 문제가 있습니다.F # 캐노피 - 어떻게 "컨텍스트"테스트를 사용할 수 있습니까?
다음 웹 사이트에서는 예제를 나열하지만 내 프로그램을 다음 코드로 빌드 할 수 없습니다. 나는 다른 들여 쓰기를 시도했지만 변경하지 않았습니다.
참조 : http://lefthandedgoat.github.io/canopy/testing.html
context: "Change text in the fields"
once(fun _ -> contains "98402" (read "#ZipCodeID"))
before(fun _ -> "#FirstNameID" << "Paul")
after(fun _ -> "#CityID" == "Tacoma")
lastly(fun _ -> "#StateID" == "WA")
이 다음과 같은 오류 제공 :
Error 1 Incomplete structured construct at or before this point in lambda expression. Expected incomplete structured construct at or before this point or other token.
':'은'context : "..."'에서 중복됩니다. –
아하, 예, 나는이 질문을 게시하기 전에 그것을 테스트하고 추가했습니다. 그러나 필자는 구문 오류를 언급함으로써 다른 문제로 안내했습니다. 고마워, 나는 몇 분 안에 나의 새로운 질문을 게시 할 것이다. – Brien