Previously, many tests just had a return statement when the test shouldn't
be executed (e.g. Unix-only). This made it look like the test was successful
when in fact it wasn't executed at all.
Assert.Ignore() is now used instead to correctly exclude those tests.
* 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
* 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
* 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
* 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
* 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
* 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
* CompareInfoTest.cs : seems like Microsoft had introduced several
bugs in CompareInfo, so marked many of them as NotDotNet.
svn path=/trunk/mcs/; revision=59839
* 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
* CompareInfo.cs : added support for OrdinalIgnoreCase.
* CompareInfoTest.cs : added test for Compare() w/ OrdinalIgnoreCase.
svn path=/trunk/mcs/; revision=53004
* 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
* 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
* 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
* SimpleCollator.cs : rewrote LastIndexOf() to handle source extenders.
Some refactoring on IndexOf() code. Removed unused Matches().
* Collation-notes.txt : some methods needed to be reimplemented, so
rewrote the description.
* CompareInfoTest.cs : Uncommented tests that got working. Added two
cornercase notworking LastIndexOf() tests.
svn path=/trunk/mcs/; revision=47327
* SimpleCollator.cs : more IsSuffix() simplification, but it will be
stopped here since it cannot handle extenders (implementing new
approach one).
* CompareInfoTest.cs : added tests for IndexOf() and LastIndexOf()
with ignorable source character. Added some non-working tests.
svn path=/trunk/mcs/; revision=47319
* SimpleCollator.cs : Fixed IndexOf() and LasIndexOf() to search the
entire replacement string if char target was an expansion.
IsSuffix() was using a method for IsPrefix() which was incorrect.
Removed old IsPrefix() code.
* CompareInfoTest.cs : added tests for IndexOf() and LastIndexOf()
that takes an expansion for target char.
svn path=/trunk/mcs/; revision=47304
* SimpleCollator.cs : IndexOf() was incorrectly sharing the same
byte[] field in different areas of code. Now extenders in both
source and target really work in IndexOf().
* CompareInfoTest.cs : removed some FIXMEs. Added more extender tests.
svn path=/trunk/mcs/; revision=47299
* create-mscompat-collation-table.cs : fixed U+FF9F diacritical weight.
* SimpleCollator.cs : handle U+FF9E and U+FF9F as extenders.
* CompareInfoTest.cs : some special weight tests got working.
Commented on some FIXME tests why they are so.
svn path=/trunk/mcs/; revision=47293
* SimpleCollator.cs : Now FilterExtender() handles all extender
support. IndexOf() and LastIndexOf() now supports extenders.
IndexOf() and LastIndexOf() did not proceed contraction source
length as expected. Tiny refactoring on private IsPrefix() to take
stringSort argument.
* CompareInfoTest.cs : Added extender tests for GetSortKey(),
Compare(), IsPrefix(), IndexOf() and LastIndexOf().
svn path=/trunk/mcs/; revision=47292
* SimpleCollator.cs : when restoring from expansion, go back to the
top of the loop (to avoid index out of range).
Now IsPrefix() is implemented to reuse Compare() and thus it now
supports extender as well.
* Collation-notes.txt : status update. Deleted optimization part in
status section (it is duplicate).
* CompareInfoTest.cs : Added Compare() test that contains expansion.
Fixed CompareSpecialWeight() which was not testing what I intended.
Added IsPrefix() tests with special weight (copying Compare() tests)
svn path=/trunk/mcs/; revision=47280
* SimpleCollator.cs : In GetSortKey(), don't update previousChar when
it is not primary (e.g. don't "extend" diacritical mark).
* CompareInfoTest.cs : added GetSortKey() testcase that tests a
sequence of nonprimary character followed by an extender.
svn path=/trunk/mcs/; revision=47269
* managed-collation.patch : CompareInfo.Compare() should consider
the possibilities that non-empty string might be actually empty
in culture-sensitive context.
* CompareInfoTest.cs : added more culture-sensitive "empty" test.
svn path=/trunk/mcs/; revision=47267
* SimpleCollator.cs : IndexOf() and LastIndexOf() returns start when
target is "empty" (in culture-sensitive context).
* CompareInfoTest.cs : Test for IndexOf() and LastIndexOf() with
"empty" target (in culture-sensitive context).
svn path=/trunk/mcs/; revision=47266
* SimpleCollator.cs : In IndexOf() and LastIndexOf(), skip ignorable
characters in target string.
* CompareInfoTest.cs : added ignorable character in target for
IsPrefix/IsSuffix/IndexOf/LastIndexOf methods.
svn path=/trunk/mcs/; revision=47265
* CompareInfoTest.cs : added tests for IsPrefix() and optionally
Compare() (which is currently used inside IsPrefix() which is
however wrong when it comes to managed collation).
svn path=/trunk/mcs/; revision=47199