Crossin的编程教室
标题:
测试代码-单元测试没看出来哪里不对
[打印本页]
作者:
变色幽灵
时间:
2018-1-9 22:00
标题:
测试代码-单元测试没看出来哪里不对
直接上图:写了个测试类,怎么也没看出来提示中的'Santiago,Chile - population 50000' != 'Santiage,Chile - population 50000'
是哪里不一样了~?
2018-1-9 21:59 上传
下载附件
(317.56 KB)
再附上city_functions类:
#encoding:utf-8
def city_functions(city,country,population = ''):
if population:
return city.title() + "," + country.title() + " - " + "population " + str(population)
else:
return city.title() + "," + country.title()
作者:
TED
时间:
2018-1-10 01:05
Santiagoooooooooooooo Santiageeeeeeeeeeeeeeeee
作者:
变色幽灵
时间:
2018-1-10 08:38
TED 发表于 2018-1-10 01:05
Santiagoooooooooooooo Santiageeeeeeeeeeeeeeeee
欢迎光临 Crossin的编程教室 (https://bbs.crossincode.com/)
Powered by Discuz! X2.5