问题描述
在学习代码测试时,我遇到了土耳其测试"一词.我真的不知道这是什么意思.
I came across the word 'The Turkey Test' while learning about code testing. I don't know really what it means.
什么是土耳其测试?为什么这样称呼?
What is Turkey Test? Why is it called so?
推荐答案
土耳其问题与软件国际化有关,或者仅与其在各种语言文化中的不当行为有关.
Turkey problem is related to software internationalization or simply to its misbehavior in various language cultures.
在不同的国家/地区,有不同的书写日期标准(土耳其为14.04.2008,美国为4/14/2008),数字(即波兰的123,45和美国的123.45)以及字符大写的规则(例如土耳其,字母i,i和ı).
In various countries there are different standards of writing dates (14.04.2008 in Turkey and 4/14/2008 in US), numbers (i.e. 123,45 in Poland and 123.45 in USA) and rules about character uppercasing (like in Turkey with letters i, I and ı).
正如 Jeff Moser 指出的那样,该问题由土耳其用户命名,该土耳其用户首先在ToUpper()
中发现了该错误.功能.下面的评论中有更多详细信息.
As Jeff Moser pointed below the problem was named by Turkish user who first found the bug in ToUpper()
function. There are more details in comments below.
但是,问题不仅限于土耳其和字符串转换.
However the problem is not limited to Turkey and to string conversions.
在波兰和其他许多国家,日期和数字也以不同的方式书写与日期或数字解释有关的问题也称为土耳其问题.
In Poland and many other countries dates and numbers are also written with different mannersand problems related to date or numbers interpretation are also called Turkey problem.
Google 搜索土耳其的链接 :
Links from Google search for Turkey Problem with details are already given:
- 您的代码是否通过了土耳其测试一个>杰夫·摩泽(Jeff Moser)
- 出什么问题了土耳其?杰夫·阿特伍德(Jeff Atwood)
- Does your code pass turkey testby Jeff Moser,
- What's Wrong WithTurkey?by Jeff Atwood.
这篇关于什么是土耳其测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!