From 68c17d1d973c17db4dfcfb42c39731b3ae8f7157 Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Fri, 12 Jul 2024 23:55:32 +0200 Subject: [PATCH] tests: Add more tests to area unit tests Signed-off-by: Myzel394 <50424412+Myzel394@users.noreply.github.com> --- .../myzel394/numberhub/data/converter/AllUnitsTest.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/data/converter/src/test/java/app/myzel394/numberhub/data/converter/AllUnitsTest.kt b/data/converter/src/test/java/app/myzel394/numberhub/data/converter/AllUnitsTest.kt index 575a3b2f..39bebf18 100644 --- a/data/converter/src/test/java/app/myzel394/numberhub/data/converter/AllUnitsTest.kt +++ b/data/converter/src/test/java/app/myzel394/numberhub/data/converter/AllUnitsTest.kt @@ -119,12 +119,19 @@ class AllUnitsTest { @Test fun testArea() = testWithUnits { - cent.checkWith(acre, "75.9", "7590") + cent.checkWith(acre, "75.9", "0.759") + cent.checkWith(square_meter, "1", "40.469") acre.checkWith(square_kilometer, "75.9", "0.30716") + acre.checkWith(square_yard, "1", "4840") + acre.checkWith(square_meter, "1", "4046.856") + acre.checkWith(cent, "1", "4046.856") + hectare.checkWith(acre, "1", "2.471"); + hectare.checkWith(acre, "1", "2.471"); hectare.checkWith(square_foot, "75.9", "8169808.00585") square_foot.checkWith(square_decimeter, "75.9", "705.13407") square_mile.checkWith(square_foot, "75.9", "2115970560.8762") square_yard.checkWith(square_foot, "75.9", "683.1") + square_yard.checkWith(square_foot, "1", "9") square_inch.checkWith(square_foot, "75.9", "0.52708") square_micrometer.checkWith(square_millimeter, "75.9", "0.00008") square_millimeter.checkWith(square_centimeter, "75.9", "0.759")