+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/********************************************************************
- * COPYRIGHT:
- * Copyright (c) 1997-2006, International Business Machines Corporation and
- * others. All Rights Reserved.
+ * Copyright (c) 1997-2009,2014, International Business Machines
+ * Corporation and others. All Rights Reserved.
********************************************************************/
#include "unicode/utypes.h"
: myCollation(0)
{
UErrorCode status = U_ZERO_ERROR;
- myCollation = Collator::createInstance(Locale("fi", "FI", ""),status);
+ myCollation = Collator::createInstance(Locale("fi", "FI", "", "collation=standard"),status);
}
CollationFinnishTest::~CollationFinnishTest()
}
const UChar CollationFinnishTest::testSourceCases[][CollationFinnishTest::MAX_TOKEN_LEN] = {
- {0x77, 0x61, 0x74, 0},
- {0x76, 0x61, 0x74, 0},
+ {0x77, 0x61, 0x74, 0}, // "wat"
+ {0x76, 0x61, 0x74, 0}, // "vat"
{0x61, 0x00FC, 0x62, 0x65, 0x63, 0x6b, 0},
{0x4c, 0x00E5, 0x76, 0x69, 0},
- {0x77, 0x61, 0x74, 0}
+ {0x77, 0x61, 0x74, 0} // "wat"
};
const UChar CollationFinnishTest::testTargetCases[][CollationFinnishTest::MAX_TOKEN_LEN] = {
- {0x76, 0x61, 0x74, 0},
+ {0x76, 0x61, 0x74, 0}, // "vat"
{0x77, 0x61, 0x79, 0},
{0x61, 0x78, 0x62, 0x65, 0x63, 0x6b, 0},
{0x4c, 0x00E4, 0x77, 0x65, 0},
- {0x76, 0x61, 0x74, 0}
+ {0x76, 0x61, 0x74, 0} // "vat"
};
const Collator::EComparisonResult CollationFinnishTest::results[] = {
Collator::GREATER,
Collator::LESS,
// test primary > 4
- Collator::EQUAL,
+ Collator::GREATER, // v < w per cldrbug 6615
};
void CollationFinnishTest::TestTertiary(/* char* par */)
if (exec) logln("TestSuite CollationFinnishTest: ");
if((!myCollation) && exec) {
- errln(__FILE__ " cannot test - failed to create collator.");
+ dataerrln(__FILE__ " cannot test - failed to create collator.");
name = "some test";
return;
}