Commit 18b3e91
authored
Refactor testFFT (#242)
* Moved the block of code to a clearly named test.
* Clarified the name of the temporary variable.
* Clarified the name of the temporary variable.
* Clarified the name of the temporary variable.
* Formatted the test to follow the arrange, act and assert form.
* Grouped the assertions together.
* Extracted a computation to an intention-revealing temporary variable.
* Clarified the name of the test.
* Extracted block of test code to a clearly named test method.
* Removed obsolete code.
* Clarified the name of the test.
* Formatted the test to follow the arrange, act and assert form.
* Improved the name of the temporary variable.
* Copied block of test code to a clearly named test method.
* Removed obsolete, duplicated code.
* Formatted the test to follow the arrange, act and assert form.
* Improved the names of the test messages.
* Clarified the name of the temporary variable.
* Made similar code even more similar.
* Made similar code even more similar.
* Extracted duplicate code to an intention revealing message.
* Inlined the temporary variable.
* Made similar code even more similar.
* Made similar code even more similar.
* Made similar code even more similar.
* Replaced the use of a deprecated method.
* Clarified the name of the test message.
* Made the name of the test message more concise by an attempt to use the domain language (Wikipedia).
* Improved code formatting.
* Clarified the name of a temporary variable.1 parent 18bd1fb commit 18b3e91
File tree
2 files changed
+59
-24
lines changed- src
- Math-FastFourierTransform
- Math-Tests-FastFourierTransform
2 files changed
+59
-24
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
7 | 14 | | |
8 | 15 | | |
9 | 16 | | |
| |||
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
29 | 37 | | |
30 | 38 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
38 | 74 | | |
39 | 75 | | |
40 | 76 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
44 | 86 | | |
45 | 87 | | |
46 | 88 | | |
47 | 89 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 90 | | |
0 commit comments