All articles

Coverage fejtörő

Published 2010-05-12 - Last modified 2010-05-12

Original: https://soci.hu/blog/index.php/2010/05/12/coverage-fejtoro/

A VS coverage-e ezt mutatja, hogy ez a sor csak részben van lefedve:

return (GetSourceItem(step) – this[step – 1]) * e + this[step – 1];

Nincs benne && vagy ||, akkor triviális lenne. Én már tudom a választ. :)

Update: alul, kommentben ott a megoldás.