Ultra Geile Studenten Benutzer Oberfläche (UGSBO)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
892 B

  1. package com.ugsbo.complexnumcalc;
  2. import static org.junit.Assert.assertTrue;
  3. import org.junit.Test;
  4. public class conjugationOfComplexNumbersTest {
  5. @Test
  6. public void TheConjugatedComplexNumberOfAComplexNumberWithOnlyARealPartShouldBeTheRealPart_ButItIsNot() {
  7. Double realPart = Double.valueOf(4);
  8. Double imaginaryPart = Double.valueOf(0);
  9. ComplexNumber complexNumber = new ComplexNumber(realPart, imaginaryPart);
  10. ComplexNumber expected = new ComplexNumber(realPart, imaginaryPart);
  11. ComplexNumber actual = complexNumber.conjugationOf();
  12. assertTrue("TheConjugatedComplexNumberOfAComplexNumberWithOnlyARealPartIsTheRealPart", expected.equals(actual));
  13. //TODO change equals to equalTo
  14. //assertThat("TheConjugatedComplexNumberOfAComplexNumberWithOnlyARealPartIsTheRealPart", expected, equalsTo(actual));
  15. }
  16. }