AI가 짠 코드의 테스트코드를 AI한테 짜게하고 있으니 Who watches the watchman? 이 떠오르는 것이다.
If you have a fediverse account, you can quote this note from your own instance. Search https://hackers.pub/ap/notes/01969b72-1c27-7ae9-b69a-89b09152c5da on your instance and quote it. (Note that quoting is not supported in Mastodon.)
실제로 방금 어떤 사례를 발견했냐면, 계산이 살짝 까다로운 값에 대한 테스트를 만들라고 시켰더니 코드를 한 백줄 뱉어내는데
expect(x).toBe(42)
이렇게 값에 대한 테스트를 안하고
expect(typeof x).toBe("number")
이러고 넘어가려고 했다. 손바닥 이리내.