(real, expect, operator)
| 22456 | } |
| 22457 | |
| 22458 | function compare(real, expect, operator) { |
| 22459 | if (operator === 'min') { |
| 22460 | return real >= expect; |
| 22461 | } |
| 22462 | else if (operator === 'max') { |
| 22463 | return real <= expect; |
| 22464 | } |
| 22465 | else { // Equals |
| 22466 | return real === expect; |
| 22467 | } |
| 22468 | } |
| 22469 | |
| 22470 | function indicesEquals(indices1, indices2) { |
| 22471 | // indices is always order by asc and has only finite number. |
no outgoing calls
no test coverage detected