Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Most (larger) Lean projects still have "unit tests". Those might be, e.g., trivial examples and counter examples to some definition, to make sure it isn't vacuous.


That's such a nice way to think about unit tests! (In this context and others.)


I think the better mapping of unit tests would actually be proofs of lemmas ?


I don't see why you would think that.

In such a project theorems and proofs are "the main point of the software". The unit tests make sure certain things don't go wrong by noticing when developers, e.g., mess up while refacing something. Also, people actually put the things I was talking about in a folder called "test"...




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: