MCPcopy Create free account
hub / github.com/TheAlgorithms/Java / subtractTest

Method subtractTest

src/test/java/com/thealgorithms/maths/FFTTest.java:44–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43 // Testing the function subtract, assertEqual test
44 @Test
45 void subtractTest() {
46 FFT.Complex complex1 = new FFT.Complex(2.0, 2.0);
47 FFT.Complex complex2 = new FFT.Complex(1.0, 1.0);
48 double sub = complex1.subtract(complex2).getReal();
49 assertEquals(1.0, sub);
50 }
51
52 // Testing the function multiply complex, assertEqual test
53 @Test

Callers

nothing calls this directly

Calls 2

subtractMethod · 0.95
getRealMethod · 0.80

Tested by

no test coverage detected