logoalt Hacker News

minimaxirlast Thursday at 4:34 PM0 repliesview on HN

Of course you can. You can write test cases for anything.

Even an add_numbers function can have bugs, e.g. you have to ensure the inputs are numbers. Most coding agents would catch this in loosely-typed languages.