tests: Add more tests to area unit tests

Signed-off-by: Myzel394 <50424412+Myzel394@users.noreply.github.com>
This commit is contained in:
Myzel394 2024-07-12 23:55:32 +02:00
parent 6cf9c53541
commit 68c17d1d97
No known key found for this signature in database
GPG Key ID: DEC4AAB876F73185

View File

@ -119,12 +119,19 @@ class AllUnitsTest {
@Test @Test
fun testArea() = testWithUnits { 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_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") hectare.checkWith(square_foot, "75.9", "8169808.00585")
square_foot.checkWith(square_decimeter, "75.9", "705.13407") square_foot.checkWith(square_decimeter, "75.9", "705.13407")
square_mile.checkWith(square_foot, "75.9", "2115970560.8762") square_mile.checkWith(square_foot, "75.9", "2115970560.8762")
square_yard.checkWith(square_foot, "75.9", "683.1") 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_inch.checkWith(square_foot, "75.9", "0.52708")
square_micrometer.checkWith(square_millimeter, "75.9", "0.00008") square_micrometer.checkWith(square_millimeter, "75.9", "0.00008")
square_millimeter.checkWith(square_centimeter, "75.9", "0.759") square_millimeter.checkWith(square_centimeter, "75.9", "0.759")