I am preparing for iOS interviews and since most of companies concentrate on data structures and algorithms, I thought of working on creating basic data structure and algorithms (DSA). I have always worked on adding/amending code in the existing app at work, but this is the first time I am creating something of my own from scratch.
So I created a cocoa touch static library for my DSA project and I added linked list code to insert/delete nodes. I wish to test these methods, so I added another class with main() in it. The project builds fine, but when I run it nothing happens. It doesn't execute main method at all.
Is adding the library to an app or testing the code through unit test are only methods to test it? What would be the best way to test my DSA code?
So I created a cocoa touch static library for my DSA project and I added linked list code to insert/delete nodes. I wish to test these methods, so I added another class with main() in it. The project builds fine, but when I run it nothing happens. It doesn't execute main method at all.
Is adding the library to an app or testing the code through unit test are only methods to test it? What would be the best way to test my DSA code?