Skip to content

Commit

Permalink
Tests: fix ut_mcalendar:testWeekdayType
Browse files Browse the repository at this point in the history
According to [1] "ar" defaults to "ar_Arab_EG". According to [2]
weekend in "EG" starts on Friday, ends on Saturday and first day of week
is Saturday.

[1] http://unicode.org/cldr/trac/browser/trunk/common/supplemental/likelySubtags.xml?rev=9525#L32
[2] http://unicode.org/cldr/trac/browser/trunk/common/supplemental/supplementalData.xml?rev=9525#L4199
  • Loading branch information
martyone authored and pvuorela committed Oct 7, 2014
1 parent 1d83f3c commit 140be0d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/ut_mcalendar/ut_mcalendar.cpp
Expand Up @@ -5603,23 +5603,23 @@ void Ut_MCalendar::testWeekdayType_data()
<< "ar"
<< "ar"
<< MLocale::DefaultCalendar
<< 1
<< 0 << 0 << 0 << 0 << 0 << 1 << 3
<< -1 << -1 << -1 << -1 << -1 << 0 << 86400000;
<< 6
<< 0 << 0 << 0 << 0 << 1 << 3 << 0
<< -1 << -1 << -1 << -1 << 0 << 86400000 << -1;
QTest::newRow("ar")
<< "ar"
<< "ar"
<< MLocale::GregorianCalendar
<< 1
<< 0 << 0 << 0 << 0 << 0 << 1 << 3
<< -1 << -1 << -1 << -1 << -1 << 0 << 86400000;
<< 6
<< 0 << 0 << 0 << 0 << 1 << 3 << 0
<< -1 << -1 << -1 << -1 << 0 << 86400000 << -1;
QTest::newRow("ar")
<< "ar"
<< "ar"
<< MLocale::IslamicCalendar
<< 1
<< 0 << 0 << 0 << 0 << 0 << 1 << 3
<< -1 << -1 << -1 << -1 << -1 << 0 << 86400000;
<< 6
<< 0 << 0 << 0 << 0 << 1 << 3 << 0
<< -1 << -1 << -1 << -1 << 0 << 86400000 << -1;
QTest::newRow("ar ar_EG")
<< "ar"
<< "ar_EG"
Expand Down

0 comments on commit 140be0d

Please sign in to comment.