Skip to content

Commit

Permalink
ICU-22781 Add a test case for unit constant behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
younies committed Jan 24, 2025
1 parent 0369192 commit 242bf96
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1430,8 +1430,8 @@ public void TestInvalidIdentifiers() {
// Compound units not supported in mixed units yet. TODO(CLDR-13701).
"kilonewton-meter-and-newton-meter",

// Invalid units because of invalid constant denominator
"meter-per--20--second",
// Invalid units due to invalid constant denominator
"meter-per--20-second",
"meter-per-1000-1e9-second",
"meter-per-1e20-second",
"per-1000",
Expand All @@ -1442,7 +1442,8 @@ public void TestInvalidIdentifiers() {
"meter-per-1000-1000",
"meter-per-1000-second-1000-kilometer",
"per-1000-and-per-1000",
};
"liter-per-kilometer-100",
};

for (String input : inputs) {
try {
Expand Down

0 comments on commit 242bf96

Please sign in to comment.