top | item 36061107 (no title) moomoo3000 | 2 years ago It removed the print and returns a list instead. discuss order hn newest 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 load replies (2) 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. load replies (1)
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 load replies (2) 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. load replies (1)
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. load replies (1)
Marazan|2 years ago
moomoo3000|2 years ago
byby|2 years ago
By definition a unit test can only test functions that return data. So there's no other option here.