我只行我们常走的路。
一天早晨,我朝窗外看去,只见四只小猫在它们的饭碗前排成一行,而在它们中间正津津有味地吃着猫食的,竟然是那只小鸡。
One morning I looked out the window and saw four cats lined up at their food bowls, and right in the middle, eating cat food with gusto, was the chicken.
只使用了五行代码,我就有了一个可工作的存根。
With a mere five lines of code, I have a workable testing stub.
You could say, I could have zero chickens and 20 pigs, does that work? I've got one chicken and nineteen pigs, does that work?
为什么简单列举出所有可能的情况,再一个来检验?你可能会说,我可以有0只鸡和20只猪,这能行吗?
I've got two chickens and eighteen pigs, you get the idea.
我有1只鸡和19只猪,这能行吗?,我有2只鸡和18只猪。
I'm simply saying swap X with Y, but this 2 won't work, because where are X and Y defined?
我只简单地说交换X和Y,但是这两行不起作用,因为X和Y是在哪里定义的呢?
应用推荐