Skip to content

contribute

Navilera edited this page Apr 27, 2024 · 2 revisions

유닛 테스트

  1. Automata 디렉토리만 따로 복사해서 NSScrollView 하나만 있는 프로젝트를 임시로 만든다.
  2. TestCase::stdout_gui:NSScrollView? 에 View를 연결한다.
  3. TestCase를 상속해서 테스트 케이스 클래스를 작성한 다음 run()을 실행한다.
  4. 테스트 케이스 예제는 Automata/Testcases.swift 에 있는 다른 자판 코드를 참조한다.
Clone this wiki locally