Skip to content

Commit

Permalink
add the same test cases as Chia-Network/clvm#162
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Sep 24, 2024
1 parent 10cc520 commit dbc6813
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions op-tests/test-more-ops.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ logxor 0xffff80 0x01 => 0x81 | 650
logxor 0x01 0x02 0x04 0x08 0x10 0x20 0x40 0x80 => 0xff | 2246
logxor 0x01 0x01 => 0 | 634
logxor 0x01 0x01 0x01 => 0x01 | 911
logxor 777 777 => 0 | 640

; this is the cost of flipping the most significan bit in a 48 byte buffer
logxor 0x123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456 0x200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 => 0x323456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456 | 1396
Expand Down Expand Up @@ -101,6 +102,7 @@ logand 13 12 4 => 4 | 911
logand => -1 | 110
logand 0x000000000000000000000000000000000000000000000000000000000000fffe 0x000000000000000000000000000000000000000000000000000000000000005D => 92 | 830
logand -128 0x07ffff => 0x07ff80 | 670
logand 1 2 => 0 | 634

ash => FAIL
ash ( 1 2 3 ) 1 => FAIL
Expand Down Expand Up @@ -718,6 +720,12 @@ point_add => 0xc0000000000000000000000000000000000000000000000000000000000000000
point_add 0x97f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6 => FAIL
point_add 0x97f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb00 => FAIL
point_add 0 => FAIL
point_add 0x97f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb => 0x97f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb | 1445554
point_add 0xa572cbea904d67468808c8eb50a9450c9721db309128012543902d0ac358a62ae28f75bb8f1c7c42c39a8c5529bf0f4e => 0xa572cbea904d67468808c8eb50a9450c9721db309128012543902d0ac358a62ae28f75bb8f1c7c42c39a8c5529bf0f4e | 1445554
point_add 0x89ece308f9d1f0131765212deca99697b112d61f9be9a5f1f3780a51335b3ff981747a0b2ca2179b96d2c0c9024e5224 => 0x89ece308f9d1f0131765212deca99697b112d61f9be9a5f1f3780a51335b3ff981747a0b2ca2179b96d2c0c9024e5224 | 1445554
point_add 0xac9b60d5afcbd5663a8a44b7c5a02f19e9a77ab0a35bd65809bb5c67ec582c897feb04decc694b13e08587f3ff9b5b60 => 0xac9b60d5afcbd5663a8a44b7c5a02f19e9a77ab0a35bd65809bb5c67ec582c897feb04decc694b13e08587f3ff9b5b60 | 1445554
point_add 0xb0e7791fb972fe014159aa33a98622da3cdc98ff707965e536d8636b5fcc5ac7a91a8c46e59a00dca575af0f18fb13dc => 0xb0e7791fb972fe014159aa33a98622da3cdc98ff707965e536d8636b5fcc5ac7a91a8c46e59a00dca575af0f18fb13dc | 1445554
point_add 0x86e82f6da4520f85c5d27d8f329eccfa05944fd1096b20734c894966d12a9e2a9a9744529d7212d33883113a0cadb909 => 0x86e82f6da4520f85c5d27d8f329eccfa05944fd1096b20734c894966d12a9e2a9a9744529d7212d33883113a0cadb909 | 1445554

; the point must be an atom
point_add ( 1 2 3 ) => FAIL
Expand Down

0 comments on commit dbc6813

Please sign in to comment.