Test and Test with custom input are showing different results for input '9'


#1

Test and Test with custom input are showing different results for input ‘9’. Test with custom input showing correct output where as Test is showing wrong


#2

You may be using global variables. Clear them out in constructor, i.e reintialize them to 0 or default value. May solve your problem.