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

You write unit tests for units of code. A function with nested functions inside of it is a single unit of code; that's essentially what those functions being nested, and hence not directly invokable from the outside, indicates.


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

Search: