对于NextDate示例,运用等价类划分的方法给出测试用例。(1910<year<2080)
1.边界值测试:(1)year=1910, month=1, day=1; (2)year=2079, month=12, day=31;
2.最坏情况测试:(1)year=1911, month=12, day=31; (2)year = 2078, month = 1 ,day = 1;
3.输入为非法值测试:(1) year=-100 ,month = 13 ,day = 32 ; (2) year = 2100 ,month = 0 ,day = -10 ;
4.输入为正常值但结果不确定的测试:(1)year=2020, month=2 ,day = 29 ; (2) year = 2019 ,month = 12 ,day = 30
创作工场
免责声明:
以上内容除特别注明外均来源于网友提问,创作工场回答,未经许可,严谨转载。
点击这里>>使用🔥专业版,更聪明、更完整、更原创!