How to write tests during Interview?

Hi, am new to interviewing. In many interview posts, people say that they were expected to write tests for the code they wrote.

I am not familiar with any sort of unit testing frameworks. During the actual interview, will a simple assert work? For eg, assert( func(arg1, arg2, ..) = expectedTestCaseOutput). Or do they expect something else? (I am familiar with C++, so please help with respect c++ specific features).

Comments (1)