Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Well I just learned why Unit Testing is important. I'm finding so many damn bugs.
Fucking side project FTW. -
Implementing something like a tree is the ideal case for unit testing, so no surprise here.
Why are you implementing a unit testing suite though? It would never come into my mind to do such a thing 😄 -
eo287539924y@Lensflare I've skimmed through the code of Python unittest, and it's pretty simple, unless you wanna add stuff like a UI and coverage. Jest is slightly more complicated
-
eo287539924y@AlgoRythm .... but why not just download an implementation from the internet? I can't see any reason to implement it on your own except to practice for an interview. or just for mere fun?
-
@eo2875 Fun! And I implemented it in like 3 files and 200 lines total. It's not that hard
Today, implemented Binary Tree from scratch and then wrote a unit testing suite from scratch in my personal project.
Pretty neat.
rant