From b4f84ef8e6141111fe4fc63e485b9514639c1f52 Mon Sep 17 00:00:00 2001 From: Hugo van der Merwe <17109322+hugovdm@users.noreply.github.com> Date: Mon, 30 Mar 2020 17:35:48 +0200 Subject: [PATCH] Add failing reciprocal test that we want to have passing. --- icu4c/source/test/intltest/unitsdatatest.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/icu4c/source/test/intltest/unitsdatatest.cpp b/icu4c/source/test/intltest/unitsdatatest.cpp index 797480c6019..3ca72db4e8c 100644 --- a/icu4c/source/test/intltest/unitsdatatest.cpp +++ b/icu4c/source/test/intltest/unitsdatatest.cpp @@ -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: x => // -- 2.40.0