Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(696)

Unified Diff: icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/StaticUnicodeSetsTest.java

Issue 343170043: Renaming numparse_unisets.h to static_unicode_sets.h and refactoring to guarantee safety in no-data… (Closed) Base URL: svn+icussh://source.icu-project.org/repos/icu/trunk/
Patch Set: Replying to Markus feedback round2 Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/UnicodeSetStaticCacheTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/StaticUnicodeSetsTest.java
===================================================================
--- icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/StaticUnicodeSetsTest.java (revision 41377)
+++ icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/StaticUnicodeSetsTest.java (working copy)
@@ -1,19 +1,20 @@
// © 2018 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html#License
-package com.ibm.icu.dev.test.number;
+package com.ibm.icu.dev.test.util;
-import static com.ibm.icu.impl.number.parse.UnicodeSetStaticCache.get;
+import static com.ibm.icu.impl.StaticUnicodeSets.get;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
-import com.ibm.icu.impl.number.parse.UnicodeSetStaticCache.Key;
+import com.ibm.icu.impl.StaticUnicodeSets.Key;
/**
- * This test class is thin; most of it was moved to ExhaustiveNumberTest.
+ * NOTE: The test testSetCoverage can be found in ExhaustiveNumberTest.java
+ *
* @author sffc
*/
-public class UnicodeSetStaticCacheTest {
+public class StaticUnicodeSetsTest {
@Test
public void testFrozen() {
@@ -21,4 +22,12 @@
assertTrue(get(key).isFrozen());
}
}
+
+ @Test
+ public void testNonEmpty() {
+ for (Key key : Key.values()) {
+ // NOTE: No key EMPTY in Java
+ assertTrue(get(key).isFrozen());
+ }
+ }
}
« no previous file with comments | « icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/UnicodeSetStaticCacheTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b