top | item 36061107

(no title)

moomoo3000 | 2 years ago

It removed the print and returns a list instead.

discuss

order

Marazan|2 years ago

Which is useless because _it has changed the semantics of the function_

moomoo3000|2 years ago

It was a bad function

byby|2 years ago

You have to change the semantics of the function to make it unit testable. Literally tell me how else can you test that function with a unit test?

By definition a unit test can only test functions that return data. So there's no other option here.