28

Today, implemented Binary Tree from scratch and then wrote a unit testing suite from scratch in my personal project.

Pretty neat.

Comments
  • 4
    Well I just learned why Unit Testing is important. I'm finding so many damn bugs.

    Fucking side project FTW.
  • 1
    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 😄
  • 0
    @Lensflare It's simple and helpful! Why not.
  • 0
    @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
  • 2
    @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?
  • 1
    @eo2875 Fun! And I implemented it in like 3 files and 200 lines total. It's not that hard
  • 2
    But did you write tests for your unit test suite? 😁
Add Comment