Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/VDM/VDMPP/MSAWseqPP/lib/   (Wiener Entwicklungsmethode ©)  Datei vom 13.4.2020 mit Größe 1 kB image not shown  

Quelle  RadarTestCase.java   Sprache: JAVA

 
package dk.au.eng;

import org.junit.Assert;
import org.junit.Test;

public class RadarTestCase {

 @Test
 public void testCoordinatesToAngle90()
 {
  int angle = Radar.crdToAngle(0, 200);
  Assert.assertEquals(90,angle);
 }
 

 @Test
 public void testCoordinatesToAngle0()
 {
  int angle = Radar.crdToAngle(200, 0);
  Assert.assertEquals(0,angle);
 }

 @Test
 public void testCoordinatesToAngle180()
 {
  int angle = Radar.crdToAngle(-200, 0);
  Assert.assertEquals(180,angle);
 }

 @Test
 public void testCoordinatesToAngle270()
 {
  int angle = Radar.crdToAngle(0, -200);
  Assert.assertEquals(270,angle);
 }

 @Test
 public void testCoordinatesToAngle45()
 {
  int angle = Radar.crdToAngle(50, 50);
  Assert.assertEquals(45,angle);
 }
 
 @Test
 public void testCoordinatesToAngle135()
 {
  int angle = Radar.crdToAngle(-50, 50);
  Assert.assertEquals(135,angle);
 }

 
 @Test
 public void testCoordinatesToAngle225()
 {
  int angle = Radar.crdToAngle(-50, -50);
  Assert.assertEquals(225,angle);
 }
 
 @Test
 public void testCoordinatesToAngle315()
 {
  int angle = Radar.crdToAngle(50, -50);
  Assert.assertEquals(315,angle);
 }


}

Messung V0.5
C=100 H=100 G=100

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.