test method implemented and build successful

distance_method
Selim Eser 2024-06-09 18:00:26 +02:00
parent 523ff6a4a6
commit 067617e8c0
1 changed files with 13 additions and 0 deletions

View File

@ -39,4 +39,17 @@ public class SystemTest {
}
@Test
public void distance(){
System current_system = new System("35a75437476f12302f72e55d368485db");
current_system.set_current_user_zip("68161");
assertEquals("88.4596509227594 km", current_system.distance("60306")); // Frankfurt
assertEquals("581.1091061333296 km", current_system.distance("20095")); // Hamburg
assertEquals("603.6077163174941 km", current_system.distance("10115")); // Berlin
}
}