Answered Questions

  • how to write test cases for this function

    Hi, Guys,I met a interview questions today, the question is to test this bool functionbool match (string s, string p);string p is a pattern string, that means include character such as '?' or '*'e.g. if s = 'panic' and p='pani?', it will return true, if s ='panic' and p ='p*', it will return true, if s = 'panic' and p= '??' it will return false.I don't know how to write down test cases and...

    vini_26

    • Feb 27th, 2008

    Hi, these are the following test cases which you can write for the asked function..Let me tell you first what I understood from the question because according to that I have written the cases.Accord...