What was verified
- Verified
- 0
- Unverified
- 0
- Inputs run
- 0
- Possessions
- 0
- Exorcisms
- 0
All 2 exported functions reachable from the corpse’s entry point were exercised with every parameter, and agreed with the corpse. This is full equivalence over the discovered surface.
Corpse vs risen
Corpse
flatten@1.0.3
The original, abandoned version — the behaviour every input is compared against.
Risen
crypt/flatten@1.0.3/risen
Agreed with the corpse on all 400 inputs that ran.
Advisories
Every advisory carried into this resurrection is accounted for as fixed.
Coverage per function
default
verified2 of 2 parameters exercised
self-agreement: passed
module.exports
verified2 of 2 parameters exercised
self-agreement: passed
Possessions (0)
No unexplained differences were found on the inputs that ran.
Corpse vs risen source
index.js +8 −4
+ 'use strict';+ + // Flatten arbitrarily nested arrays into a single array, optionally limited to+ // a maximum `depth`. Behaviour is preserved exactly from flatten@1.0.3; this is+ // a syntax-only modernization (see RESURRECTION.md). module.exports = function flatten(list, depth) {− depth = (typeof depth == 'number') ? depth : Infinity;+ depth = (typeof depth === 'number') ? depth : Infinity; if (!depth) { if (Array.isArray(list)) {− return list.map(function(i) { return i; });+ return list.map(function (i) { return i; }); } return list; } return _flatten(list, 1); function _flatten(list, d) { return list.reduce(function (acc, item) { if (Array.isArray(item) && d < depth) { return acc.concat(_flatten(item, d + 1));− }− else {+ } else { return acc.concat(item); } }, []); } };Sampled trial inputs
A sample of the real inputs run through both packages (the full run was sampled; the totals above are the true totals).
| function | input | corpse | risen | = |
|---|---|---|---|---|
| default | [],1e-323 | [] | [] | agree |
| default | [-9007199254740991,"\n"],-736891290 | [-9007199254740991,"\n"] | [-9007199254740991,"\n"] | agree |
| default | [],null | [] | [] | agree |
| default | [],null | [] | [] | agree |
| default | [],6.4e-323 | [] | [] | agree |
| default | [],1.7954845769525005e+93 | [] | [] | agree |
| default | [null,-2147483631],-9007199254740991 | [null,-2147483631] | [null,-2147483631] | agree |
| default | [],4.743230442260694e-100 | [] | [] | agree |
| default | [],9007199254740991 | [] | [] | agree |
| default | [false,1,-1952562027,""],0 | [false,1,-1952562027,""] | [false,1,-1952562027,""] | agree |
| default | [-1.4890041391292875e-262,true,null,null],-30 | [-1.4890041391292875e-262,true,null,null] | [-1.4890041391292875e-262,true,null,null] | agree |
| default | [],1.7976931348623125e+308 | [] | [] | agree |
| default | ["Ca05l",false,null,null],-1294098804 | ["Ca05l",false,null,null] | ["Ca05l",false,null,null] | agree |
| default | [],-9007199254740991 | [] | [] | agree |
| default | [],-1 | [] | [] | agree |
| default | [" ","=?",-2064424099,"💀"],0 | [" ","=?",-2064424099,"💀"] | [" ","=?",-2064424099,"💀"] | agree |
| default | [],-2.5333995600593404e-95 | [] | [] | agree |
| default | [false,"",true,1088820425,0],-3.333029854481655e-187 | [false,"",true,1088820425,0] | [false,"",true,1088820425,0] | agree |
| default | [],-5 | [] | [] | agree |
| module.exports | [],1e-323 | [] | [] | agree |
| module.exports | [-9007199254740991,"\n"],-736891290 | [-9007199254740991,"\n"] | [-9007199254740991,"\n"] | agree |
| module.exports | [],null | [] | [] | agree |
| module.exports | [],null | [] | [] | agree |
| module.exports | [],6.4e-323 | [] | [] | agree |
| module.exports | [],1.7954845769525005e+93 | [] | [] | agree |
| module.exports | [null,-2147483631],-9007199254740991 | [null,-2147483631] | [null,-2147483631] | agree |
| module.exports | [],4.743230442260694e-100 | [] | [] | agree |
| module.exports | [],9007199254740991 | [] | [] | agree |
| module.exports | [false,1,-1952562027,""],0 | [false,1,-1952562027,""] | [false,1,-1952562027,""] | agree |
| module.exports | [-1.4890041391292875e-262,true,null,null],-30 | [-1.4890041391292875e-262,true,null,null] | [-1.4890041391292875e-262,true,null,null] | agree |
| module.exports | [],1.7976931348623125e+308 | [] | [] | agree |
| module.exports | ["Ca05l",false,null,null],-1294098804 | ["Ca05l",false,null,null] | ["Ca05l",false,null,null] | agree |
| module.exports | [],-9007199254740991 | [] | [] | agree |
| module.exports | [],-1 | [] | [] | agree |
| module.exports | [" ","=?",-2064424099,"💀"],0 | [" ","=?",-2064424099,"💀"] | [" ","=?",-2064424099,"💀"] | agree |
| module.exports | [],-2.5333995600593404e-95 | [] | [] | agree |
| module.exports | [false,"",true,1088820425,0],-3.333029854481655e-187 | [false,"",true,1088820425,0] | [false,"",true,1088820425,0] | agree |
| module.exports | [],-5 | [] | [] | agree |
How this trial ran
- Isolation
- child-process
- Seed
- 42
- Kiro CLI
- kiro-cli 2.0.1
- Risen source
- crypt/flatten@1.0.3/risen
- Published as
- @abhimanyurb/flatten@1.0.3
Swap it in via package.json overrides:
{
"overrides": {
"flatten": "npm:@abhimanyurb/flatten@1.0.3"
}
}- exhume — ok
- autopsy — ok
- modernize — ok
- trial — ok