From a2a0fa000dad7c17bdb4190ac682ac26df3b4af2 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Thu, 27 Feb 2014 22:52:07 +0000 Subject: [PATCH] ICU-8070 Check that the rule parser handles a comment without terminating end-of-line X-SVN-Rev: 35257 --- icu4c/source/test/intltest/regcoll.cpp | 11 ++++++++++- icu4c/source/test/intltest/regcoll.h | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/icu4c/source/test/intltest/regcoll.cpp b/icu4c/source/test/intltest/regcoll.cpp index f9c0ef1489c..1f732aea807 100644 --- a/icu4c/source/test/intltest/regcoll.cpp +++ b/icu4c/source/test/intltest/regcoll.cpp @@ -1307,7 +1307,15 @@ void CollationRegressionTest::caseFirstCompressionSub(Collator *col, UnicodeStri } } - +void CollationRegressionTest::TestTrailingComment() { + // ICU ticket #8070: + // Check that the rule parser handles a comment without terminating end-of-line. + IcuTestErrorCode errorCode(*this, "TestTrailingComment"); + RuleBasedCollator coll(UNICODE_STRING_SIMPLE("&c