@@ -122,8 +122,9 @@ TEST_CASE("Arithmetic -> Subtraction -> Subtract purely imaginary numbers",
122122}
123123
124124TEST_CASE (
125- " Arithmetic -> Subtraction -> Subtract numbers with real and imaginary "
126- " part" ,
125+ // clang-format off
126+ " Arithmetic -> Subtraction -> Subtract numbers with real and imaginary part" ,
127+ // clang-format on
127128 " [f876feb1-f9d1-4d34-b067-b599a8746400]" ) {
128129 const Complex c1{1.0 , 2.0 };
129130 const Complex c2{3.0 , 4.0 };
@@ -148,8 +149,9 @@ TEST_CASE("Arithmetic -> Multiplication -> Multiply purely imaginary numbers",
148149}
149150
150151TEST_CASE (
151- " Arithmetic -> Multiplication -> Multiply numbers with real and imaginary "
152- " part" ,
152+ // clang-format off
153+ " Arithmetic -> Multiplication -> Multiply numbers with real and imaginary part" ,
154+ // clang-format on
153155 " [4d1d10f0-f8d4-48a0-b1d0-f284ada567e6]" ) {
154156 const Complex c1{1.0 , 2.0 };
155157 const Complex c2{3.0 , 4.0 };
@@ -197,17 +199,19 @@ TEST_CASE("Absolute value -> Absolute value of a negative purely real number",
197199}
198200
199201TEST_CASE (
200- " Absolute value -> Absolute value of a purely imaginary number with "
201- " positive imaginary part" ,
202+ // clang-format off
203+ " Absolute value -> Absolute value of a purely imaginary number with positive imaginary part" ,
204+ // clang-format on
202205 " [bbe26568-86c1-4bb4-ba7a-da5697e2b994]" ) {
203206 const Complex c{0.0 , 5.0 };
204207
205208 REQUIRE_THAT (c.abs (), Catch::Matchers::WithinAbs (5.0 , eps));
206209}
207210
208211TEST_CASE (
209- " Absolute value -> Absolute value of a purely imaginary number with "
210- " negative imaginary part" ,
212+ // clang-format off
213+ " Absolute value -> Absolute value of a purely imaginary number with negative imaginary part" ,
214+ // clang-format on
211215 " [3b48233d-468e-4276-9f59-70f4ca1f26f3]" ) {
212216 const Complex c{0.0 , -5.0 };
213217
@@ -267,89 +271,99 @@ TEST_CASE("Complex exponential function -> Exponential of a purely real number",
267271
268272// Extra Credit
269273TEST_CASE (
270- " Complex exponential function -> Exponential of a number with real and "
271- " imaginary part" ,
274+ // clang-format off
275+ " Complex exponential function -> Exponential of a number with real and imaginary part" ,
276+ // clang-format on
272277 " [08eedacc-5a95-44fc-8789-1547b27a8702]" ) {
273278 const Complex c{std::log (2.0 ), M_PI};
274279
275280 require_approx_equal (Complex (-2.0 , 0.0 ), c.exp ());
276281}
277282
278283TEST_CASE (
279- " Complex exponential function -> Exponential resulting in a number with "
280- " real and imaginary part" ,
284+ // clang-format off
285+ " Complex exponential function -> Exponential resulting in a number with real and imaginary part" ,
286+ // clang-format on
281287 " [d2de4375-7537-479a-aa0e-d474f4f09859]" ) {
282288 const Complex c{std::log (2.0 ) / 2.0 , M_PI / 4.0 };
283289
284290 require_approx_equal (Complex (1.0 , 1.0 ), c.exp ());
285291}
286292
287293TEST_CASE (
288- " Operations between real numbers and complex numbers -> Add real number to "
289- " complex number" ,
294+ // clang-format off
295+ " Operations between real numbers and complex numbers -> Add real number to complex number" ,
296+ // clang-format on
290297 " [06d793bf-73bd-4b02-b015-3030b2c952ec]" ) {
291298 const Complex c{1.0 , 2.0 };
292299
293300 require_approx_equal (Complex (6.0 , 2.0 ), c + 5.0 );
294301}
295302
296303TEST_CASE (
297- " Operations between real numbers and complex numbers -> Add complex number "
298- " to real number" ,
304+ // clang-format off
305+ " Operations between real numbers and complex numbers -> Add complex number to real number" ,
306+ // clang-format on
299307 " [d77dbbdf-b8df-43f6-a58d-3acb96765328]" ) {
300308 const Complex c{1.0 , 2.0 };
301309
302310 require_approx_equal (Complex (6.0 , 2.0 ), 5.0 + c);
303311}
304312
305313TEST_CASE (
306- " Operations between real numbers and complex numbers -> Subtract real "
307- " number from complex number" ,
314+ // clang-format off
315+ " Operations between real numbers and complex numbers -> Subtract real number from complex number" ,
316+ // clang-format on
308317 " [20432c8e-8960-4c40-ba83-c9d910ff0a0f]" ) {
309318 const Complex c{5.0 , 7.0 };
310319
311320 require_approx_equal (Complex (1.0 , 7.0 ), c - 4.0 );
312321}
313322
314323TEST_CASE (
315- " Operations between real numbers and complex numbers -> Subtract complex "
316- " number from real number" ,
324+ // clang-format off
325+ " Operations between real numbers and complex numbers -> Subtract complex number from real number" ,
326+ // clang-format on
317327 " [b4b38c85-e1bf-437d-b04d-49bba6e55000]" ) {
318328 const Complex c{5.0 , 7.0 };
319329
320330 require_approx_equal (Complex (-1.0 , -7.0 ), 4.0 - c);
321331}
322332
323333TEST_CASE (
324- " Operations between real numbers and complex numbers -> Multiply complex "
325- " number by real number" ,
334+ // clang-format off
335+ " Operations between real numbers and complex numbers -> Multiply complex number by real number" ,
336+ // clang-format on
326337 " [dabe1c8c-b8f4-44dd-879d-37d77c4d06bd]" ) {
327338 const Complex c{2.0 , 5.0 };
328339
329340 require_approx_equal (Complex (10.0 , 25.0 ), c * 5.0 );
330341}
331342
332343TEST_CASE (
333- " Operations between real numbers and complex numbers -> Multiply real "
334- " number by complex number" ,
344+ // clang-format off
345+ " Operations between real numbers and complex numbers -> Multiply real number by complex number" ,
346+ // clang-format on
335347 " [6c81b8c8-9851-46f0-9de5-d96d314c3a28]" ) {
336348 const Complex c{2.0 , 5.0 };
337349
338350 require_approx_equal (Complex (10.0 , 25.0 ), 5.0 * c);
339351}
340352
341353TEST_CASE (
342- " Operations between real numbers and complex numbers -> Divide complex "
343- " number by real number" ,
354+ // clang-format off
355+ " Operations between real numbers and complex numbers -> Divide complex number by real number" ,
356+ // clang-format on
344357 " [8a400f75-710e-4d0c-bcb4-5e5a00c78aa0]" ) {
345358 const Complex c{10.0 , 100.0 };
346359
347360 require_approx_equal (Complex (1.0 , 10.0 ), c / 10.0 );
348361}
349362
350363TEST_CASE (
351- " Operations between real numbers and complex numbers -> Divide real number "
352- " by complex number" ,
364+ // clang-format off
365+ " Operations between real numbers and complex numbers -> Divide real number by complex number" ,
366+ // clang-format on
353367 " [9a867d1b-d736-4c41-a41e-90bd148e9d5e]" ) {
354368 const Complex c{1.0 , 1.0 };
355369
0 commit comments