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

I see what you did here.

Now write the code to test calling publish! without an argument provided for current_time.



Why? What's the point? Really? People shouldn't be losing sleep over testing their stdlib.

FWIW, I've used a Time::warp function on several occasions. I really don't have a problem with this code. It's a straw man of an example.




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

Search: