diff options
author | Marek Safar <marek.safar@gmail.com> | 2014-01-04 18:32:26 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2014-01-04 18:33:24 +0400 |
commit | 65f5704a2c8d259edb8ac857caa70398d58556ea (patch) | |
tree | ea7cc2439acde70086fdeb227f8f19acdeee70cf /mcs/class | |
parent | 46d83567acb08116a8dc57f9a38e2258256b5c46 (diff) |
[corlib] Update datetime patters. Fixes #17044
Diffstat (limited to 'mcs/class')
-rw-r--r-- | mcs/class/corlib/Test/System.Globalization/DateTimeFormatInfoTest.cs | 6 | ||||
-rw-r--r-- | mcs/class/corlib/Test/System/DateTimeOffsetTest.cs | 2 | ||||
-rw-r--r-- | mcs/class/corlib/Test/System/DateTimeTest.cs | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/mcs/class/corlib/Test/System.Globalization/DateTimeFormatInfoTest.cs b/mcs/class/corlib/Test/System.Globalization/DateTimeFormatInfoTest.cs index d3d388f6703..e0230b788a5 100644 --- a/mcs/class/corlib/Test/System.Globalization/DateTimeFormatInfoTest.cs +++ b/mcs/class/corlib/Test/System.Globalization/DateTimeFormatInfoTest.cs @@ -94,11 +94,11 @@ namespace MonoTests.System.Globalization { CultureInfo ci = new CultureInfo ("es-ES"); DateTimeFormatInfo di = ci.DateTimeFormat; - Assert.AreEqual ("dddd, dd' de 'MMMM' de 'yyyy", di.LongDatePattern, "#1"); + Assert.AreEqual ("dddd, d' de 'MMMM' de 'yyyy", di.LongDatePattern, "#1"); Assert.AreEqual ("H:mm:ss", di.LongTimePattern, "#2"); - Assert.AreEqual ("dddd, dd' de 'MMMM' de 'yyyy H:mm:ss", di.FullDateTimePattern, "#3"); + Assert.AreEqual ("dddd, d' de 'MMMM' de 'yyyy H:mm:ss", di.FullDateTimePattern, "#3"); Assert.AreEqual ("MMMM' de 'yyyy", di.YearMonthPattern, "#4"); - Assert.AreEqual ("dd MMMM", di.MonthDayPattern, "#5"); + Assert.AreEqual ("d' de 'MMMM", di.MonthDayPattern, "#5"); } [Test] diff --git a/mcs/class/corlib/Test/System/DateTimeOffsetTest.cs b/mcs/class/corlib/Test/System/DateTimeOffsetTest.cs index df685fc0ddf..3bc65a8204b 100644 --- a/mcs/class/corlib/Test/System/DateTimeOffsetTest.cs +++ b/mcs/class/corlib/Test/System/DateTimeOffsetTest.cs @@ -163,7 +163,7 @@ namespace MonoTests.System { Assert.AreEqual (dto.ToString ("r", new CultureInfo ("en-us")), dto.ToString ("R", new CultureInfo ("en-us"))); Assert.AreEqual ("2007-10-31T21:00:00", dto.ToString ("s", new CultureInfo ("en-us"))); Assert.AreEqual ("2007-11-01 05:00:00Z", dto.ToString ("u", new CultureInfo ("en-us"))); - Assert.AreEqual ("October, 2007", dto.ToString ("Y", new CultureInfo ("en-us"))); + Assert.AreEqual ("October 2007", dto.ToString ("Y", new CultureInfo ("en-us"))); Assert.AreEqual (dto.ToString ("y", new CultureInfo ("en-us")), dto.ToString ("Y", new CultureInfo ("en-us"))); } diff --git a/mcs/class/corlib/Test/System/DateTimeTest.cs b/mcs/class/corlib/Test/System/DateTimeTest.cs index 72da88876a3..30de11b4895 100644 --- a/mcs/class/corlib/Test/System/DateTimeTest.cs +++ b/mcs/class/corlib/Test/System/DateTimeTest.cs @@ -2476,11 +2476,11 @@ namespace MonoTests.System } [Test] - public void Foo () + public void GenitiveMonth () { var ci = new CultureInfo ("ru-RU"); var dt = new DateTime (2012, 9, 15); - Assert.AreEqual ("сентября 15", dt.ToString ("m", ci)); + Assert.AreEqual ("15 сентября", dt.ToString ("m", ci)); } } } |