]> granicus.if.org Git - icu/commitdiff
Add failing reciprocal test that we want to have passing.
authorHugo van der Merwe <17109322+hugovdm@users.noreply.github.com>
Mon, 30 Mar 2020 15:35:48 +0000 (17:35 +0200)
committerHugo van der Merwe <17109322+hugovdm@users.noreply.github.com>
Tue, 31 Mar 2020 16:39:25 +0000 (18:39 +0200)
icu4c/source/test/intltest/unitsdatatest.cpp

index 797480c6019db2a070b4e34370023fbfc2fba27a..3ca72db4e8ce47ebbfbf31a1d1995e99edfdf3c9 100644 (file)
@@ -63,6 +63,15 @@ void UnitsDataTest::testGetConversionRateInfo() {
          {"therm-us", "kilogram", "meter", "second", NULL},
          "kilogram-square-meter-per-square-second"},
 
+        // Add "reciprocal" example: consumption and consumption-inverse
+        //
+        // WIP/FIXME: failing example which should pass. Thus we will remove the
+        // base unit calculation.
+        {"liter-per-100-kilometer",
+         "mile-per-gallon",
+         {"meter", "mile", "gallon", NULL, NULL},
+         "cubic-meter-per-meter"},
+
         // WIP/FIXME(hugovdm): I think I found a bug in targetBaseUnit.product():
         // Target Base: <kilogram-square-meter-per-square-second> x <one-per-meter> => <meter>
         //