@@ -121,9 +121,7 @@ TEST_CASE("Arithmetic -> Subtraction -> Subtract purely imaginary numbers",
121121 require_approx_equal (Complex (0.0 , -1.0 ), c1 - c2);
122122}
123123
124- TEST_CASE (
125- " Arithmetic -> Subtraction -> Subtract numbers with real and imaginary "
126- " part" ,
124+ TEST_CASE (" Arithmetic -> Subtraction -> Subtract numbers with real and imaginary part" ,
127125 " [f876feb1-f9d1-4d34-b067-b599a8746400]" ) {
128126 const Complex c1{1.0 , 2.0 };
129127 const Complex c2{3.0 , 4.0 };
@@ -147,9 +145,7 @@ TEST_CASE("Arithmetic -> Multiplication -> Multiply purely imaginary numbers",
147145 require_approx_equal (Complex (-2.0 , 0.0 ), c1 * c2);
148146}
149147
150- TEST_CASE (
151- " Arithmetic -> Multiplication -> Multiply numbers with real and imaginary "
152- " part" ,
148+ TEST_CASE (" Arithmetic -> Multiplication -> Multiply numbers with real and imaginary part" ,
153149 " [4d1d10f0-f8d4-48a0-b1d0-f284ada567e6]" ) {
154150 const Complex c1{1.0 , 2.0 };
155151 const Complex c2{3.0 , 4.0 };
@@ -196,18 +192,14 @@ TEST_CASE("Absolute value -> Absolute value of a negative purely real number",
196192 REQUIRE_THAT (c.abs (), Catch::Matchers::WithinAbs (5.0 , eps));
197193}
198194
199- TEST_CASE (
200- " Absolute value -> Absolute value of a purely imaginary number with "
201- " positive imaginary part" ,
195+ TEST_CASE (" Absolute value -> Absolute value of a purely imaginary number with positive imaginary part" ,
202196 " [bbe26568-86c1-4bb4-ba7a-da5697e2b994]" ) {
203197 const Complex c{0.0 , 5.0 };
204198
205199 REQUIRE_THAT (c.abs (), Catch::Matchers::WithinAbs (5.0 , eps));
206200}
207201
208- TEST_CASE (
209- " Absolute value -> Absolute value of a purely imaginary number with "
210- " negative imaginary part" ,
202+ TEST_CASE (" Absolute value -> Absolute value of a purely imaginary number with negative imaginary part" ,
211203 " [3b48233d-468e-4276-9f59-70f4ca1f26f3]" ) {
212204 const Complex c{0.0 , -5.0 };
213205
@@ -266,90 +258,70 @@ TEST_CASE("Complex exponential function -> Exponential of a purely real number",
266258}
267259
268260// Extra Credit
269- TEST_CASE (
270- " Complex exponential function -> Exponential of a number with real and "
271- " imaginary part" ,
261+ TEST_CASE (" Complex exponential function -> Exponential of a number with real and imaginary part" ,
272262 " [08eedacc-5a95-44fc-8789-1547b27a8702]" ) {
273263 const Complex c{std::log (2.0 ), M_PI};
274264
275265 require_approx_equal (Complex (-2.0 , 0.0 ), c.exp ());
276266}
277267
278- TEST_CASE (
279- " Complex exponential function -> Exponential resulting in a number with "
280- " real and imaginary part" ,
268+ TEST_CASE (" Complex exponential function -> Exponential resulting in a number with real and imaginary part" ,
281269 " [d2de4375-7537-479a-aa0e-d474f4f09859]" ) {
282270 const Complex c{std::log (2.0 ) / 2.0 , M_PI / 4.0 };
283271
284272 require_approx_equal (Complex (1.0 , 1.0 ), c.exp ());
285273}
286274
287- TEST_CASE (
288- " Operations between real numbers and complex numbers -> Add real number to "
289- " complex number" ,
275+ TEST_CASE (" Operations between real numbers and complex numbers -> Add real number to complex number" ,
290276 " [06d793bf-73bd-4b02-b015-3030b2c952ec]" ) {
291277 const Complex c{1.0 , 2.0 };
292278
293279 require_approx_equal (Complex (6.0 , 2.0 ), c + 5.0 );
294280}
295281
296- TEST_CASE (
297- " Operations between real numbers and complex numbers -> Add complex number "
298- " to real number" ,
282+ TEST_CASE (" Operations between real numbers and complex numbers -> Add complex number to real number" ,
299283 " [d77dbbdf-b8df-43f6-a58d-3acb96765328]" ) {
300284 const Complex c{1.0 , 2.0 };
301285
302286 require_approx_equal (Complex (6.0 , 2.0 ), 5.0 + c);
303287}
304288
305- TEST_CASE (
306- " Operations between real numbers and complex numbers -> Subtract real "
307- " number from complex number" ,
289+ TEST_CASE (" Operations between real numbers and complex numbers -> Subtract real number from complex number" ,
308290 " [20432c8e-8960-4c40-ba83-c9d910ff0a0f]" ) {
309291 const Complex c{5.0 , 7.0 };
310292
311293 require_approx_equal (Complex (1.0 , 7.0 ), c - 4.0 );
312294}
313295
314- TEST_CASE (
315- " Operations between real numbers and complex numbers -> Subtract complex "
316- " number from real number" ,
296+ TEST_CASE (" Operations between real numbers and complex numbers -> Subtract complex number from real number" ,
317297 " [b4b38c85-e1bf-437d-b04d-49bba6e55000]" ) {
318298 const Complex c{5.0 , 7.0 };
319299
320300 require_approx_equal (Complex (-1.0 , -7.0 ), 4.0 - c);
321301}
322302
323- TEST_CASE (
324- " Operations between real numbers and complex numbers -> Multiply complex "
325- " number by real number" ,
303+ TEST_CASE (" Operations between real numbers and complex numbers -> Multiply complex number by real number" ,
326304 " [dabe1c8c-b8f4-44dd-879d-37d77c4d06bd]" ) {
327305 const Complex c{2.0 , 5.0 };
328306
329307 require_approx_equal (Complex (10.0 , 25.0 ), c * 5.0 );
330308}
331309
332- TEST_CASE (
333- " Operations between real numbers and complex numbers -> Multiply real "
334- " number by complex number" ,
310+ TEST_CASE (" Operations between real numbers and complex numbers -> Multiply real number by complex number" ,
335311 " [6c81b8c8-9851-46f0-9de5-d96d314c3a28]" ) {
336312 const Complex c{2.0 , 5.0 };
337313
338314 require_approx_equal (Complex (10.0 , 25.0 ), 5.0 * c);
339315}
340316
341- TEST_CASE (
342- " Operations between real numbers and complex numbers -> Divide complex "
343- " number by real number" ,
317+ TEST_CASE (" Operations between real numbers and complex numbers -> Divide complex number by real number" ,
344318 " [8a400f75-710e-4d0c-bcb4-5e5a00c78aa0]" ) {
345319 const Complex c{10.0 , 100.0 };
346320
347321 require_approx_equal (Complex (1.0 , 10.0 ), c / 10.0 );
348322}
349323
350- TEST_CASE (
351- " Operations between real numbers and complex numbers -> Divide real number "
352- " by complex number" ,
324+ TEST_CASE (" Operations between real numbers and complex numbers -> Divide real number by complex number" ,
353325 " [9a867d1b-d736-4c41-a41e-90bd148e9d5e]" ) {
354326 const Complex c{1.0 , 1.0 };
355327
0 commit comments