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

Issue 344030043: ticket:13766: Make UnicodeMapTest#TestUnicodeMapGeneralCategory smaller. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
5 years, 10 months ago by roubert (google)
Modified:
5 years, 10 months ago
Visibility:
Public.

Description

ticket:13766: Make UnicodeMapTest#TestUnicodeMapGeneralCategory smaller. There are 0x10FFFF code points and this test allocates memory for every code point tested. Testing every single one of them is therefore memory intensive and slow, without adding any real value to the test. Instead an equivalent test coverage can be achieved by testing a much smaller set of ranges of code points that cover all categories.

Patch Set 1 #

Total comments: 4

Patch Set 2 : Code review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/UnicodeMapTest.java View 1 2 chunks +12 lines, -2 lines 0 comments Download

Messages

Total messages: 4
roubert (google)
Do these ranges seem reasonable to you, or can you suggest improvements?
5 years, 10 months ago (2018-06-18 17:12:25 UTC) #1
mark.edward.davis
Code looks good. Just a few refinements to catch certain other characters. https://codereview.appspot.com/344030043/diff/1/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/UnicodeMapTest.java File icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/UnicodeMapTest.java ...
5 years, 10 months ago (2018-06-21 15:02:54 UTC) #2
roubert (google)
https://codereview.appspot.com/344030043/diff/1/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/UnicodeMapTest.java File icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/UnicodeMapTest.java (right): https://codereview.appspot.com/344030043/diff/1/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/UnicodeMapTest.java#newcode365 icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/UnicodeMapTest.java:365: cp = 0xD7A3; // Hangul Syllable, Last. On 2018/06/21 ...
5 years, 10 months ago (2018-06-21 18:42:31 UTC) #3
mark.edward.davis
5 years, 10 months ago (2018-06-21 18:46:06 UTC) #4
LTGM
Sign in to reply to this message.

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