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

Method addTest

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

Source from the content-addressed store, hash-verified

24
25 // Testing the function add, assertEqual test
26 @Test
27 void addTest() {
28 FFT.Complex complex1 = new FFT.Complex(1.0, 1.0);
29 FFT.Complex complex2 = new FFT.Complex(2.0, 2.0);
30 double add = complex1.add(complex2).getReal();
31 assertEquals(3.0, add);
32 }
33
34 // Testing the function add, assertNotEqual test
35 @Test

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
getRealMethod · 0.80

Tested by

no test coverage detected