Pergunta de entrevista da empresa Lightspeed

Was given an exaple of test code and I was asked what is bad in this code

Resposta da entrevista

Sigiloso

19 de nov. de 2024

The code was checking the none zero values of list but the problem was that the list could be empty and the test could passed.