This is a question in my paper test today, the function signature is
int is_match(char* pattern,char* string)
The pattern is limited to only A
try to make a list of interesting test cases:
is_match("dummy","dummy") should return true;
is_match("dumm?y","dummy") should return true;
is_match("dum?y","dummy") should return false;
is_match("dum*y","dummy") should return true;
and so on ...
then see how to make the easier test pass, then the next one ...