bobbicodes / 4bb

4clojure as a babashka script
59 stars 5 forks source link

Get problem by id and print problem id when testing #5

Closed ivangalbans closed 4 years ago

ivangalbans commented 4 years ago

If you get the problem indexing in the collection this can cause unexpected behavior when the problem vector is not ordered and the problems list is not consecutive like on the 4clojure website.

Note that problem[59] is the Problem #66 "Greatest Common Divisor".

It is also useful when a test fails to see what problem it refers to.

image
ghost commented 4 years ago

Congratulations :tada:. DeepCode analyzed your code in 0.001 seconds and we found no issues. Enjoy a moment of no bugs :sunny:.

👉 View analysis in DeepCode’s Dashboard

bobbicodes commented 4 years ago

Ah yes that's much better! Thanks!