Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请帮助我生成以下测试用例。我只有以下信息:请帮助我开始编写测试用例
reverseString(originalString, stringToBeReversed, stringReverseTo, max)
首先,编写一些快乐的路径测试,例如:
空字符串 "",
小字符串“a”,
输入计数为奇数的“abc”,
输入哪个计数甚至是“abcd”
...足够的。
然后,不愉快的路径测试(您可能会抛出异常的无效输入):
无、123321 等。