v0.13 #241
Annotations
3 errors
|
testing
Process completed with exit code 1.
|
|
test/bitauth-script.test.ts > Libauth Script formatting > HodlVault > should format script as debugging output for BitAuth IDE:
packages/utils/test/bitauth-script.test.ts#L28
AssertionError: expected ' …' to be ' …' // Object.is equality
- Expected
+ Received
@@ -7,15 +7,11 @@
/* pubkey ownerPk, */
/* pubkey oraclePk, */
/* int minBlock, */
/* int priceTarget */
/* ) { */
- /* function spend( */
- /* sig ownerSig, */
- /* datasig oracleSig, */
- OP_6 OP_PICK OP_SIZE OP_8 OP_EQUALVERIFY OP_DROP /* bytes8 oracleMessage */
- /* ) { */
+ /* function spend(sig ownerSig, datasig oracleSig, bytes8 oracleMessage) { */
/* // message: { blockHeight, price } */
OP_6 OP_PICK OP_4 OP_SPLIT /* bytes4 blockHeightBin, bytes4 priceBin = oracleMessage.split(4); */
OP_SWAP OP_BIN2NUM /* int blockHeight = int(blockHeightBin); */
OP_SWAP OP_BIN2NUM /* int price = int(priceBin); */
/* */
❯ test/bitauth-script.test.ts:28:92
|
|
test/bitauth-script.test.ts > Libauth Script formatting > HodlVault > should generate a correct source map and bytecode from freshly compiled source code:
packages/utils/test/bitauth-script.test.ts#L14
AssertionError: expected '12:52:12:72;;;;;;14:49:14:62;;:69::70…' to deeply equal '14:49:14:62;;:69::70;:49::71:1;15:30:…'
Expected: "14:49:14:62;;:69::70;:49::71:1;15:30:15:44:0;:26::45:1;16:24:16:32:0;:20::33:1;19:16:19:27:0;:31::39;;:16:::1;:8::41;20:27:20:38:0;:8::40:1;;23:25:23:36:0;;:16:::1;:8::38;26:29:26::0;;:40::53;;:55::63;;:8::66:1;27::27:45"
Received: "12:52:12:72;;;;;;14:49:14:62;;:69::70;:49::71:1;15:30:15:44:0;:26::45:1;16:24:16:32:0;:20::33:1;19:16:19:27:0;:31::39;;:16:::1;:8::41;20:27:20:38:0;:8::40:1;;23:25:23:36:0;;:16:::1;:8::38;26:29:26::0;;:40::53;;:55::63;;:8::66:1;27::27:45"
❯ test/bitauth-script.test.ts:14:43
|