2017-03-07 12:27:36 +01:00
|
|
|
/**
|
|
|
|
* Compress tests.
|
|
|
|
*
|
|
|
|
* @author n1474335 [n1474335@gmail.com]
|
|
|
|
* @copyright Crown Copyright 2017
|
|
|
|
* @license Apache-2.0
|
|
|
|
*/
|
2017-03-23 18:52:20 +01:00
|
|
|
import TestRegister from "../../TestRegister.js";
|
2017-03-21 23:41:44 +01:00
|
|
|
|
2017-03-07 12:27:36 +01:00
|
|
|
TestRegister.addTests([
|
|
|
|
{
|
|
|
|
name: "Bzip2 decompress",
|
|
|
|
input: "425a6839314159265359b218ed630000031380400104002a438c00200021a9ea601a10003202185d5ed68ca6442f1e177245385090b218ed63",
|
|
|
|
expectedOutput: "The cat sat on the mat.",
|
|
|
|
recipeConfig: [
|
|
|
|
{
|
2017-07-24 16:55:48 +02:00
|
|
|
"op": "From Hex",
|
|
|
|
"args": ["Space"]
|
2017-03-07 12:27:36 +01:00
|
|
|
},
|
|
|
|
{
|
2017-07-24 16:55:48 +02:00
|
|
|
"op": "Bzip2 Decompress",
|
|
|
|
"args": []
|
2017-03-07 12:27:36 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]);
|