I want to make a unit-test for a function returning a qvariant to make sure if the qvariant is holding the right vlaue or not
Please give me some idea to how should i proceed?
I want to make a unit-test for a function returning a qvariant to make
Share
Create a QVariant containing the value you’re expecting and then compare it with the return value. Why do you think this is different to testing any other return type?