Yup, although I do enjoy finding edge cases that aren’t necessarily present in the examples or input. I intend to do a fair bit more property-based testing this year, just for kicks. That’s something I’ve had success with for raw algorithmic code but struggled with in the past for nitty-gritty real-world use cases.
Those would be functional tests
Re:Advent of Code 2021
by jacobmischka on Sunday November 21, 2021 @07:08AM
(#29295779)
Same thing if your whole solution is a single function :)
Re:Advent of Code 2021
by NoahTheDuke on Sunday November 21, 2021 @10:28AM
(#29296828)
Which is another name for unit tests.
Basically every puzzle comes with unit tests that just need to be translated into code.