Commit Graph
85 Commits
Author SHA1 Message Date
Damien Diederen 4857d28d99 [480178] Fix handling of surrogate characters.
Note: This revision was originally supplied in six parts. Notes
accompanying each of the parts are reproduced below.

[PATCH v5 1/1] System.Char icall: New Unicode category tables compatible with MS .NET

These new category tables, generated using create-category-table(.cs)
available in the mcs sources, make the Mono runtime understand the
same Unicode category codes as recent versions of Microsoft's runtime.

CategoryData_v2 matches versions v2.0.50727 and v3.5.21022 of .NET.

CategoryData_v4 matches version v4.0.30319 of .NET.  The v4 tables can
be disabled by defining the DISABLE_NET_4_0 preprocessor symbol.

Similarly, the astral portions of both tables can be disabled by
defining the DISABLE_ASTRAL preprocessor symbol.

CAUTION: Mcs has to be updated with the corresponding patches, or Mono
will suffer a low-level (internal call) crash when initializing
System.Char.

[PATCH v5 1/5] create-category-table: Utility to generate reasonably-packed Unicode tables

This program generates (partially) bi-level tables encoding the
contents of the Unicode character category database.

Mono embeds a linear table with category codes for the Unicode
BMP (first 65536 codepoints), and lacks information about characters
in the astral planes--leading to requests such as bug 480178.
Extending the linear table to cover the full codespace is not an ideal
solution, as that would expand the embedded "blob" by a factor of 17.

The new tables generated by this program can be used to support the
full range of characters.  An additional level of indirection used for
characters outside the U+0000..U+FFFF range enables "page" sharing, so
that the total amount of embedded data only grows by 13.5kB.

Cf. in-file comments for usage instructions.

[PATCH v5 2/5] System.Char: Handle astral planes in (string,int) overload

If the string element at index starts a surrogate pair, we decode the
full codepoint and "query" the higher planes of the database.

This fixes bug 480178.

CAUTION: This commit depends on the following runtime change:

  System.Char icall: New Unicode category tables compatible with
  MS .NET.

Without it, Mono will suffer a low-level (internal call) crash when
initializing System.Char.

COMPATIBILITY

The updated Mono runtime as been verified to produce the same results
as Microsoft's; here are the MD5 sums of their Unicode category
database dumps (generated via create-category-table --dump, compiled
and executed under the relevant runtime):

    eba45e00acdc82f9a08873465110aef4  v2.0.50727.dump
    eba45e00acdc82f9a08873465110aef4  v3.5.21022.dump
    56fd5c828fbb9083693835680667fd2c  v4.0.30319.dump

    eba45e00acdc82f9a08873465110aef4  gmcs.dump
    56fd5c828fbb9083693835680667fd2c  dmcs.dump

These results will naturally differ if support for .NET v4 or astral
planes is disabled when building the runtime.  Note, also, that these
are different from the results produced by Mono prior to the
introduction of these changes, even for the BMP.

Other versions of the internal database can be easily generated using
create-category-table(.cs), but this currently requires a rebuild.

PERFORMANCE

Direct array indexing is mandatory for code points in the
U+0000..U+FFFF range; as pointed out by Andreas Nahr, performing
bi-level lookups in the Char.Is*(char) predicates cause the JIT to
stop inlining them and results in an important performance drop.

The simple data access pattern used for higher planes, suggested by
Paolo Molaro, is fairly efficient but currenly only used by this
non-optimized method.

[PATCH v5 3/5] Globalization.IdnMappingTest: U+0221 is not unassigned anymore, use U+18B0

U+0221 is LATIN SMALL LETTER D WITH CURL in Unicode 4.0, and is recognized as a
valid letter in recent versions of the .NET framework.  This causes
GetAsciiInvalid to (unexpectedly) succeed, and the test to fail.

Use U+18B0 instead, which is unassigned as of Unicode 5.2 and .NET 3.5 SP1.

[PATCH v5 4/5] CharCategoryTest: Update category dumps to match MS .NET

The category codes in newer versions of Microsoft's framework are not
compatible with the ones encoded in this class, causing tests to fail.
Fix that by using new sets of dumps generated under v3.5.21022 and
v4.0.30319.

Also, drop CharTest.IsWhiteSpace_Complete as the same checks are
performed by CharCategoryTest.IsWhiteSpace.

While we are at it, improve the generator so that:

  - common code is shared between the generator and the test;

  - a number of test cases can be generated at once via
    command-line arguments;

  - the dumps are word-wrapped, enhancing legibility and avoiding
    line length limitations in some compilers.

[PATCH v5 5/5] CharTest: Add tests for astral plane characters/surrogate pairs

  - Show that Char.GetUnicodeCategory(string,int) results in a
    lookup into the higher planes of the Unicode database when invoked
    on a valid surrogate pair, and returns the "normal" category code
    otherwise.

  - Perform a few sanity checks on the results of ConvertFromUtf32
    and GetUnicodeCategory when invoked on codepoints from the
    higher planes.
(cherry picked from commit 70dff8b4272dba83bed23e6502499646526efd59)
2011-07-25 12:43:03 -07:00
Jb Evain 6db80772c9 2009-12-09 Jb Evain <[email protected]>
* StringInfoTest.cs: test the default constructor.


svn path=/trunk/mcs/; revision=147935
2009-12-09 19:22:03 +00:00
Sebastien Pouliot 3594bcce41 In Test/System.Globalization:
2009-10-29  Sebastien Pouliot  <[email protected]>

	* CompareInfoTest.cs: Add test cases to validate parameters

In System.Globalization:
2009-10-29  Sebastien Pouliot  <[email protected]>

	* CompareInfo.cs: Add/fix CompareOptions validations. Reduce code
	duplication in Compare methods (wrt CompareOptions). Fix 
	calculation bug	in Compare(string,int.string,int,CompareOptions).


svn path=/trunk/mcs/; revision=145023
2009-10-29 14:11:53 +00:00
Zoltan Varga 227b251f89 2009-06-25 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136880
2009-06-25 20:16:53 +00:00
Zoltan Varga bef447594f 2009-05-27 Zoltan Varga <[email protected]>
* CultureInfoTest.cs: Fix the net 1.1 build.

svn path=/trunk/mcs/; revision=134807
2009-05-26 22:06:32 +00:00
Atsushi Eno f37f07036a 2009-05-21 Atsushi Enomoto <[email protected]>
* CultureInfo.cs : it seems that zh-Hant and zh-Hans are introduced
	  as almost alias  of zh-CHS/zh-CHT in vista and some new windows.
	  Add hacky support for them.

	* CultureInfoTest.cs : test zh-Hant.


svn path=/trunk/mcs/; revision=134499
2009-05-21 02:20:16 +00:00
Atsushi Eno 28ac67adbc 2009-01-07 Atsushi Enomoto <[email protected]>
* CompareInfo.cs : Fixed bug #462957. With empty target string it
	  should always return 0.

	* CompareInfoTest.cs : added test for #462957.


svn path=/trunk/mcs/; revision=122602
2009-01-07 02:43:34 +00:00
Atsushi Eno e0b4cf8ede 2008-08-14 Atsushi Enomoto <[email protected]>
* CultureInfo.cs : applied patch by Robert Jordan,
          fixed bug #402128. Create uninitialized parent culture
          when required.

        * CultureInfoTest.cs : added test for bug #402128.


svn path=/trunk/mcs/; revision=110466
2008-08-14 08:45:14 +00:00
Atsushi Eno ae1b208b06 2008-04-02 Atsushi Enomoto <[email protected]>
* SortKey.cs : check null arguments. Fixed bug #376171.

	* SortKeyTest.cs : new test, for bug #376171.

	* corlib_test.dll.sources : added SortKeyTest.cs.


svn path=/trunk/mcs/; revision=99609
2008-04-02 06:55:00 +00:00
Atsushi Eno d90c5fdc3b 2007-11-03 Atsushi Enomoto <[email protected]>
* DateTimeFormatInfoTest.cs : enabled test for bug #332553.


svn path=/trunk/mcs/; revision=88797
2007-11-03 18:50:48 +00:00
Atsushi Eno 09c1575ea1 2007-10-30 Atsushi Enomoto <[email protected]>
* DateTimeFormatInfoTest.cs : added test for bug #335298.


svn path=/trunk/mcs/; revision=88444
2007-10-30 10:12:19 +00:00
Gert Driesen d10807607c * DateTimeFormatInfoTest.cs: Added test for bug #332553.
svn path=/trunk/mcs/; revision=87302
2007-10-10 19:55:32 +00:00
Atsushi Eno d33e17636c 2007-07-17 Atsushi Enomoto <[email protected]>
* CalendricalCalculations.cs, JulianCalendar.cs :
	  true fix for bug #81783. GetMonths() should consider month part
	  going beyond 12.

	* CalendarTest.cs : true test for bug #81783 (overflown month in
	  AddMonths().)


svn path=/trunk/mcs/; revision=82072
2007-07-17 02:34:27 +00:00
Atsushi Eno 6ee039de66 2007-07-10 Atsushi Enomoto <[email protected]>
* StringInfo.cs : implemented 2.0 members.

	* StringInfoTest.cs : new test.

	* corlib_test.dll.sources : added StringInfoTest.cs.


svn path=/trunk/mcs/; revision=81694
2007-07-10 10:08:01 +00:00
Atsushi Eno 8a50d92ad4 2007-07-10 Atsushi Enomoto <[email protected]>
* HijriCalendar.cs ThaiBuddhistCalendar.cs HebrewCalendar.cs
	  GregorianCalendar.cs KoreanCalendar.cs JulianCalendar.cs :
	  implemented ToFourDigitYear(), actually base implementation mostly
	  works as is.

	* CalendarTest.cs : enabled ToFourDigitYear() test from 5 years ago.
	  and added some more ToFourDigitYear() tests.


svn path=/trunk/mcs/; revision=81688
2007-07-10 07:01:38 +00:00
Atsushi Eno 33e726b5b4 2007-07-09 Atsushi Enomoto <[email protected]>
* CalendarTest.cs : added GetWeekOfYear() test.


svn path=/trunk/mcs/; revision=81624
2007-07-09 09:37:34 +00:00
Gert Driesen 82a943e21a * CaseInsensitiveHashCodeProvider.cs: In default ctor, do not save
TextInfo if current culture is invariant. Remoted private ctor.
In Default, always construct new instance since the current culture
may change. 
* CaseInsensitiveHashCodeProviderTest.cs: Improved test for
Default property to show the a new intance is constructed. Added test
for DefaultInvariant. Improved serialization tests. Added ctor test
for null CultureInfo. Code formatting.
* CultureInfoTest.cs: Fixed UseUserOverride tests to pass on systems
where invariant culture is default locale.

svn path=/trunk/mcs/; revision=81408
2007-07-05 16:40:03 +00:00
Gert Driesen 49732d70e3 * CultureInfoTest.cs: Added extra info in order to troubleshoot
buildbot failure on redhat9-i386.

svn path=/trunk/mcs/; revision=81285
2007-07-03 18:05:08 +00:00
Atsushi Eno 8111fd9f67 2007-07-03 Atsushi Enomoto <[email protected]>
* CalendarTest.cs, EastAsianLunisolarCalendarTest.cs :
	  more tests needed mark as NotWorking.


svn path=/trunk/mcs/; revision=81281
2007-07-03 17:31:17 +00:00
Gert Driesen 208162bbc4 * EastAsianLunisolarCalenderTest.cs: Fixed build.
svn path=/trunk/mcs/; revision=81194
2007-07-02 18:01:53 +00:00
Atsushi Eno a87721a7ce 2007-07-02 Atsushi Enomoto <[email protected]>
* UmAlQuraCalendar.cs
	  EastAsianLunisolarCalendar.cs
	  ChineseLunisolarCalendar.cs
	  TaiwanLunisolarCalendar.cs
	  JapaneseLunisolarCalendar.cs
	  KoreanLunisolarCalendar.cs : new 2.0 calendars.
	* Calendar.cs
	  HijriCalendar.cs HebrewCalendar.cs ThaiBuddhistCalendar.cs
	  GregorianCalendar.cs KoreanCalendar.cs JulianCalendar.cs
	  TaiwanCalendar.cs JapaneseCalendar.cs PersianCalendar.cs :
	  added GetLeapMonth().
	* CalendricalCalculations.cs : added some lunisolar calendar stuff.
	  mostly stubs.

	* EastAsianLunisolarCalendarTest.cs : new test, totally not-working.
	* CalendarTest.cs : added couple of 2.0 tests. Some are not working.

	* corlib.dll.sources : added couple of new 2.0 calendars.
	* corlib_test.dll.sources : added EastAsianLunisolarCalendarTest.cs.


svn path=/trunk/mcs/; revision=81162
2007-07-02 08:33:31 +00:00
Gert Driesen e80c7764f2 * DirectoryTest.cs: Restore original CurrentCulture on teardown.
* FileSystemInfoTest.cs: Restore original CurrentCulture on teardown.
Removed stray tabs. Code formatting.
* FileTest.cs: Restore original CurrentCulture on teardown. Removed
stray tabs. Changes spaces to tabs.
* ThreadTest.cs: Added tests for bug #81930. 
* CultureInfoTest.cs: Added exception tests when invoking NumberFormat  
or DateTimeFormat on a neutral culture. Added tests for bug #81930.
No longer derive from deprecated Assertion class. Added tests for
GetCultureInfo (2.0).
* ArrayTest.cs: Added test for bug #81941.
* ByteTest.cs: Restore original CurrentCulture in teardown.
* DecimalFormatterTest.cs: Restore original CurrentCulture in teardown.
Code formatting.
* DecimalTest.cs: Code formatting.
* DoubleFormatterTest.cs: Test relies on specific culture, so set it
up here. This worked before since the CurrentCulture was set in another
TestFixture, and the original one was not restored.
* FloatingPointFormatterTest.cs: Same.
* NumberFormatterTest.cs: Same. Removed stray tabs and fixes code
formatting.
* SingleFormatterTest.cs: Restore original culture on teardown. Code
formatting.
* SingleTest.cs: Same.
* StringComparerTest.cs: Restore original culture on teardown.

svn path=/trunk/mcs/; revision=80626
2007-06-24 14:20:09 +00:00
Rolf Bjarne Kvinge 529ec2dda1 In .:
2007-05-31  Rolf Bjarne Kvinge  <[email protected]>

	* corlib_test.dll.sources : added DateTimeFormatInfoTest.cs.

In Test/System.Globalization:
2007-05-31  Rolf Bjarne Kvinge  <[email protected]>

	* DateTimeFormatInfo.cs: Added EraName.

In System.Globalization:
2007-05-31  Rolf Bjarne Kvinge  <[email protected]>

	* GregorianCalendar.cs: Change era names from C.E./Common Era 
	to AD/A.D.
	* DateTimeFormatInfo.cs: GetEra: search the abbreviated era names
	as well for the era, and return the era, not the index of the era 
	in the array.


svn path=/trunk/mcs/; revision=78435
2007-06-01 17:00:02 +00:00
Atsushi Eno d7e3c98820 2007-06-01 Atsushi Enomoto <[email protected]>
* Calendar.cs DateTimeFormatInfo.cs : 2.0 API fixes.
	* CalendricalCalculations.cs : fixed AddMonth() and AddYears() to
	  consider that the max days in the target month (for AddYears()
	  leap year month could matter). Fixed bug #81783.

	* CalendarTest.cs : test for bug #81783 and AddYears() for leap year
	  (similar issue).


svn path=/trunk/mcs/; revision=78429
2007-06-01 16:40:20 +00:00
Atsushi Eno 050407c02e 2007-05-25 Atsushi Enomoto <[email protected]>
* IdnMapping.cs : new 2.0 class.

	* IdnMappingTest.cs : new test.

	* corlib.dll.sources : added MissingSatelliteAssemblyException.cs
	  and IdnMapping.cs. Removed obsolete 2.0 NotCancelableException.cs.
	* corlib_test.dll.sources : added IdnMappingTest.cs.


svn path=/trunk/mcs/; revision=77944
2007-05-25 13:24:10 +00:00
Atsushi Eno b184bcaab7 2007-05-15 Atsushi Enomoto <[email protected]>
* RegionInfo.cs, CultureInfo.cs : in 2.0 RegionInfo could be created
	  from locale name. To support that, retrieve CultureInfo from name
	  and use its Territory name if exists.
	  RegionInfo.Equals() still uses lcid, but hash code is based on
	  region ID. Added GeoId, which represents unique region ID (which
	  is returned in 1.x GetHashCode()).

	* RegionInfoTest.cs : new tests.

	* corlib_test.dll.sources : added RegionInfoTest.cs.


svn path=/trunk/mcs/; revision=77408
2007-05-15 14:09:27 +00:00
Atsushi Eno aa6d604fdd 2007-03-06 Atsushi Enomoto <[email protected]>
* SimpleCollator.cs : disable QuickCheckPossible(), which is
	  inaccurate and inefficient. Fixed bug #79714.

	* CompareInfoTest.cs : added test for bug #79714.


svn path=/trunk/mcs/; revision=73785
2007-03-06 06:52:49 +00:00
Atsushi Eno 2d8e7be1ee 2007-02-15 Atsushi Enomoto <[email protected]>
* SimpleCollator.cs : character filtering is needed for 
	  OrdinalIgnoreCase in 2.0 profile. Fixed bug #80865.

	* CompareInfoTest.cs : added test for bug #80865.


svn path=/trunk/mcs/; revision=72902
2007-02-15 11:44:26 +00:00
Atsushi Eno 17cd7585e6 2007-01-25 Atsushi Enomoto <[email protected]>
* SimpleCollator.cs : GetTailContraction() was broken to pick correct
	  contraction/special sortkey out and thus LastIndexOf() failed when 
	  it is involved. Fixed bug #80612.

	* CompareInfoTest.cs : added test for bug #80612.


svn path=/trunk/mcs/; revision=71632
2007-01-24 23:46:05 +00:00
Atsushi Eno 23b5a0661b 2007-01-22 Atsushi Enomoto <[email protected]>
* SimpleCollator.cs : for non-StringSort comparison, level5 (- and ')
	  should be still skipped after initial level5 check is done (while
	  they were simply treated as a normal character). Fixed bug #78748.
	* SortKeyBuffer.cs : Fixed NRE in french sort.

	* CompareInfoTest.cs : Added Compare() tests for hyphens.
	  Removed NotWorking from previous new test (its existence wasn't
	  even recognized until today).


svn path=/trunk/mcs/; revision=71436
2007-01-22 09:46:13 +00:00
Gert Driesen 3742294bba * CompareInfoTest.cs: Added test for checking valid CompareOptions for
GetSortKey.

svn path=/trunk/mcs/; revision=70883
2007-01-11 20:16:02 +00:00
Atsushi Eno 3064a0316d 2006-12-25 Atsushi Enomoto <[email protected]>
* SimpleCollator.cs : added IndexOf() implementation for Ordinal
	  and OrdinalIgnoreCase, though Ordinal version is not used (since
	  it is slower than icall).

	* CompareInfo.cs : for OrdinalIgnoreCase, IndexOf() and LastIndexOf()
	  will use managed version (icalls for them are case sensitive).
	  Removed MonoTODOs.

	* CompareInfoTest.cs : added tests for OrdinalIgnoreCase versions
	  of IndexOf() and LastIndexOf(). Added Ordinal LastIndexOf() tests.


svn path=/trunk/mcs/; revision=70037
2006-12-25 09:45:38 +00:00
Atsushi Eno 6fe325aede 2006-11-27 Atsushi Enomoto <[email protected]>
* CompareInfo.cs : fixed wrong || with && for OrdinalIgnoreCase.
	  Fixed bug #80056.

	* CompareInfoTest.cs : why there was "return" before OrdinalIgnoreCase
	  tests ...


svn path=/trunk/mcs/; revision=68492
2006-11-27 03:41:18 +00:00
Atsushi Eno 590b6838a0 2006-06-08 Atsushi Enomoto <[email protected]>
* DateTimeFormatInfoTest.cs : added test for bug #78569.


svn path=/trunk/mcs/; revision=61549
2006-06-08 02:08:21 +00:00
Atsushi Eno b10ca82b9e 2006-04-25 Atsushi Enomoto <[email protected]>
* CompareInfoTest.cs : seems like Microsoft had introduced several
	  bugs in CompareInfo, so marked many of them as NotDotNet.


svn path=/trunk/mcs/; revision=59839
2006-04-25 09:27:29 +00:00
Atsushi Eno b4adb6e7aa 2006-04-10 Atsushi Enomoto <[email protected]>
* CultureInfoTest.cs : added test for bug #69652.


svn path=/trunk/mcs/; revision=59294
2006-04-10 11:04:57 +00:00
Atsushi Eno 3b68ed659f 2006-03-21 Atsushi Enomoto <[email protected]>
* HebrewCalrndar.cs : simply use CCHebrewCalendar.last_day_of_month().
	  Patch by Yaacov Akiba Slama. Fixed bug #76252.

	* CalendarTest.cs : added test for bug #76252.


svn path=/trunk/mcs/; revision=58211
2006-03-21 01:49:24 +00:00
Atsushi Eno 3dfb0495d5 2006-01-25 Atsushi Enomoto <[email protected]>
* CultureInfo.cs : Clone() attempted to clone number and date time
	  formats, thus failed. Fixed bug #77347.

	* CultureInfoTest.cs : added test for bug #77347.


svn path=/trunk/mcs/; revision=56032
2006-01-25 07:23:45 +00:00
Sebastien Pouliot 908a5e0549 2005-12-08 Sebastien Pouliot <[email protected]>
* DaylightTimeTest.cs: New. Serialization interop test cases.


svn path=/trunk/mcs/; revision=54145
2005-12-09 01:27:46 +00:00
Sebastien Pouliot 483f0a0b69 2005-12-06 Sebastien Pouliot <[email protected]>
* TextInfoTest.cs: Added new tests for serialization and for new 2.0
	features.


svn path=/trunk/mcs/; revision=54015
2005-12-07 01:57:41 +00:00
Atsushi Eno 2f7137543e 2005-12-05 Atsushi Enomoto <[email protected]>
* CompareInfoTest.cs : split the last case in NullCharacter() out
	  and marked it as NotDotNet (.NET is inconsistent between Compare
	  and IndexOf).


svn path=/trunk/mcs/; revision=53920
2005-12-05 13:18:07 +00:00
Atsushi Eno d84c8c8508 2005-11-14 Atsushi Enomoto <[email protected]>
* MSCompatUnicodeTable.cs : (IsIgnorable) \0 is not ignorable.
          Fixed bug 76702.

        * CompareInfoTest.cs : added NullCharacter() for bug #76702.


svn path=/trunk/mcs/; revision=53034
2005-11-14 22:55:31 +00:00
Atsushi Eno 4a34097273 2005-11-14 Atsushi Enomoto <[email protected]>
* CompareInfo.cs : added support for OrdinalIgnoreCase.

	* CompareInfoTest.cs : added test for Compare() w/ OrdinalIgnoreCase.


svn path=/trunk/mcs/; revision=53004
2005-11-14 09:50:17 +00:00
Atsushi Eno ebe83beef3 2005-11-14 Atsushi Enomoto <[email protected]>
* SimpleCollator.cs :
	  - Added CompareOrdinalIgnoreCase() for NET_2_0 RTM.
	  - Reduced extra parameter from LastIndexOfSortKey().
	  - LastIndexOf() should use GetTailContraction for the source string.
	    And then, target could match in the middle of the possible
	    "replacement contraction" of the source string, so use
	    LastIndexOfSortKey() to catch them.
	  - Fixed GetTailContraction() that caused index out of range.

	* CompareInfoTest.cs : added more tests for some specific cultures
	  (say, Japanese) that have replacement contraction in ASCII range
	  and caused incorrect results for LastIndexOf() and all dependent
	  members.


svn path=/trunk/mcs/; revision=53003
2005-11-14 09:28:29 +00:00
Ben Maurer 8684c72d03 In System:
2005-10-14  Ben Maurer  <[email protected]>

	* DateTime.cs: Speed up when parsing date time objects by not
	duplicating cultureinfo arrays.

In Test/System.Globalization:
2005-10-14  Ben Maurer  <[email protected]>

	* DateTimeFormatInfoTest.cs: New test to make sure we do not
	return the same array from GetAllDateTimePatterns.

In System.Globalization:
2005-10-14  Ben Maurer  <[email protected]>

	* DateTimeFormatInfo.cs: Speed up GetAllDateTimePatterns by
	caching the result and then cloning it.


svn path=/trunk/mcs/; revision=51696
2005-10-14 04:32:02 +00:00
Atsushi Eno cc628222e2 2005-09-27 Atsushi Enomoto <[email protected]>
* SimpleCollator.cs : in CompareInternal(), there was a possibility of
	  infinite loop. Fixed bug #76243.

	* CompareInfoTest.cs : added testcase for bug #76243.


svn path=/trunk/mcs/; revision=50837
2005-09-27 10:25:34 +00:00
Atsushi Eno ca701aa247 2005-09-20 Atsushi Enomoto <[email protected]>
* SimpleCollator.cs : In IsPrefix/IsSuffix, if target is an empty string,
	  immediately return true.

	* CompareInfoTest.cs : added empty string cases for IsPrefix/IsSuffix.


svn path=/trunk/mcs/; revision=50283
2005-09-20 09:32:41 +00:00
Atsushi Eno 68eb6f2e29 2005-09-09 Atsushi Enomoto <[email protected]>
* SimpleCollator.cs : IsSuffix() optimization logic was buggy, so just
	  use pretty simple way with LastIndexOf() (no significant perf.
	  problem).

	* CompareInfoTest.cs : added another test for IsSuffix() that I found.


svn path=/trunk/mcs/; revision=49793
2005-09-09 10:28:18 +00:00
Gert Driesen 1c338a4d8a * TextInfoTest.cs: Added ListSeparator test.
* TextInfo.cs: For invariant culture, ListSeparator is a comma.

svn path=/trunk/mcs/; revision=48373
2005-08-14 21:10:31 +00:00
Atsushi Eno 36190bda16 2005-08-11 Atsushi Enomoto <[email protected]>
* CultureInfo.cs : lazy load OptionalCalendars (and always non-null).
	* DateTimeFormatInfo.cs : GetEraNames() should work.

	* CultureInfoTest.cs : added OptionalCalendars().
	* CompareInfoTest.cs : added possible bug test for checkedFlags 
	  optimization.


svn path=/trunk/mcs/; revision=48297
2005-08-11 18:51:01 +00:00