views:

646

answers:

7

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?

+6  A: 

Here is described the turkey test

http://www.moserware.com/2008/02/does-your-code-pass-turkey-test.html

Luixv
A: 

Google gave me this blog article about turkey test.

mouviciel
+6  A: 

It's related to internationalization.

In different countries there are different standards of writing i.e. dates (14.04.2008 in Turkey and 4/14/2008 in US) and numbers.

I have no idea why the problem has been called Turkey problem, because in Poland and many other European countries dates and numbers are also written with different manners.

Links from Google search for Turkey Problem with details are already given:

Grzegorz Gierlik
I called it "The Turkey Test" because a user in Turkey was the first to find a bug in our code that was triggered by a ToUpper() error that I described in the post.
Jeff Moser
"I have no idea why the problem has been called Turkey problem, because in Poland and many other European countries dates and numbers are also written with different manners."It is mostly about uppercase/lowercase of the 'İ' letter. For example, Microsoft Service Trace Viewer tool is suffering from this problem. When you want to open a log file under Inetpub folder, what you get is an error message saying "'c:\ınetpub\...' cannot be opened"
idursun
+1  A: 

The link provided by @Luixv gives a comprehensive description of the issue.

The summary is that if your going to test your code on only one non-English locale, test it on Turkish.

This is because the Turkish has instances of most edge cases you are likely to encounter with localization, including "unusual" format strings and non-standard characters (such as a different capitalization rules for i).

Richard
+1  A: 

Jeff Atwood has a blog article on same which is the first place I came across it myself. in summary attempting to run your application under a Turkish Locale is an excellent test of your I18n.

here's jeffs article

TygerKrash
+2  A: 

The so called "Turkey Test" is related to Software internationalization. One problem of globalization/internationalization are that date and time formats in diffrent cultures can differ on many levels (day/month/year order, date separator etc).

Also, Turkey has some special rules for capitalization, which can lead to problems. For example, the Turkish "i" character is a common problem for many programs which capitalize it in a wrong way.

splattne
A: 

we write dates smaller to bigger like day-month-year 28.10.2010

we Turkish use numbers like 4.567,9

we Have ö,Ö ç,Ç ş,Ş ğ,Ğ ü,Ü but we dont seprate dot from i when it bigger 'İ' and if it dont have dot, we dont add like 'ı' => 'I'.

But more important than these, people can put much stress and we have capability of undetermined bug creatibility.

If your code properly runs in Turkey, it'll probably work anywhere.

nerkn