【发布时间】:2023-04-04 18:35:01
【问题描述】:
这似乎是一个愚蠢的问题,但我真的很喜欢你的 cmets,并想验证我的测试人员的想法..
I can think of following test cases:
1) Pop element from empty stack should return error
2) Push n+1 elements in stack should return error during insertion of n+1th element
3) validate empty,full and top functions of stack.
4) if stack is used in multithreaded environment , make sure it is synchronized.
5) validate stack functionality:
push element (x)
pop element: it should return x
评论?
如果在面试中问到这个问题,可能的答案是什么? 我的回答够有效吗?
【问题讨论】:
标签: testing