Skip to content

Commit

Permalink
Do not use ICU property values in the JSP TestProperties (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin authored May 24, 2024
1 parent ab25a70 commit 7ebae15
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
import org.unicode.jsp.UnicodeUtilities;
import org.unicode.jsp.XPropertyFactory;
import org.unicode.props.UnicodeProperty;
import org.unicode.text.UCD.ToolUnicodePropertySource;
import org.unicode.text.utility.Settings;

public class TestProperties extends TestFmwk2 {
static XPropertyFactory factory = XPropertyFactory.make();
Expand Down Expand Up @@ -289,12 +291,13 @@ public void TestCCC() {
checkProperty(factory, "ccc");

String test = "[:Udev:ccc=/3/:]";
final var devProperties = ToolUnicodePropertySource.make(Settings.latestVersion);
UnicodeSet actual = UnicodeSetUtilities.parseUnicodeSet(test);
UnicodeSet expected = new UnicodeSet();
for (int i = 0; i < 256; ++i) {
String s = String.valueOf(i);
if (s.contains("3")) {
expected.addAll(new UnicodeSet("[:ccc=" + s + ":]"));
expected.addAll(devProperties.getProperty("ccc").getSet(s));
}
}
assertEquals(test, expected, actual);
Expand Down

0 comments on commit 7ebae15

Please sign in to comment.