Checks whether the specified circular dependencies are equal.
(actual: CircularDependency, expected: CircularDependency)
| 107 | |
| 108 | /** Checks whether the specified circular dependencies are equal. */ |
| 109 | function isSameCircularDependency(actual: CircularDependency, expected: CircularDependency) { |
| 110 | if (actual.length !== expected.length) { |
| 111 | return false; |
| 112 | } |
| 113 | for (let i = 0; i < actual.length; i++) { |
| 114 | if (actual[i] !== expected[i]) { |
| 115 | return false; |
| 116 | } |
| 117 | } |
| 118 | return true; |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * Compares two circular dependencies by respecting the alphabetic order of nodes in the |