From 338f1f320a01af968fec150ea45b4ff3d9b07802 Mon Sep 17 00:00:00 2001 From: Richard Kiss Date: Mon, 23 Sep 2024 15:43:33 -0700 Subject: [PATCH] Add new subtle `log` tests. New `point-add` tests. --- tests/brun/logand-7.txt | 3 +++ tests/brun/logxor-5.txt | 3 +++ tests/brun/point-add-4.txt | 3 +++ tests/brun/point-add-5.txt | 3 +++ tests/brun/point-add-6.txt | 3 +++ tests/brun/point-add-7.txt | 3 +++ tests/brun/point-add-8.txt | 3 +++ tests/brun/point-add-9.txt | 3 +++ tests/brun/point-add-a.txt | 3 +++ 9 files changed, 27 insertions(+) create mode 100644 tests/brun/logand-7.txt create mode 100644 tests/brun/logxor-5.txt create mode 100644 tests/brun/point-add-4.txt create mode 100644 tests/brun/point-add-5.txt create mode 100644 tests/brun/point-add-6.txt create mode 100644 tests/brun/point-add-7.txt create mode 100644 tests/brun/point-add-8.txt create mode 100644 tests/brun/point-add-9.txt create mode 100644 tests/brun/point-add-a.txt diff --git a/tests/brun/logand-7.txt b/tests/brun/logand-7.txt new file mode 100644 index 00000000..90a3f0b8 --- /dev/null +++ b/tests/brun/logand-7.txt @@ -0,0 +1,3 @@ +brun -c '(logand (q . 1) (q . 2))' +cost = 675 +() diff --git a/tests/brun/logxor-5.txt b/tests/brun/logxor-5.txt new file mode 100644 index 00000000..b9186c81 --- /dev/null +++ b/tests/brun/logxor-5.txt @@ -0,0 +1,3 @@ +brun -c '(logxor (q . 777) (q . 777))' +cost = 681 +() diff --git a/tests/brun/point-add-4.txt b/tests/brun/point-add-4.txt new file mode 100644 index 00000000..00dec3bd --- /dev/null +++ b/tests/brun/point-add-4.txt @@ -0,0 +1,3 @@ +brun -c '(point_add)' +cost = 101575 +0xc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 diff --git a/tests/brun/point-add-5.txt b/tests/brun/point-add-5.txt new file mode 100644 index 00000000..5c52e4c4 --- /dev/null +++ b/tests/brun/point-add-5.txt @@ -0,0 +1,3 @@ +brun -c '(point_add (pubkey_for_exp (q . 1)))' +cost = 2771824 +0x97f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb diff --git a/tests/brun/point-add-6.txt b/tests/brun/point-add-6.txt new file mode 100644 index 00000000..6582e389 --- /dev/null +++ b/tests/brun/point-add-6.txt @@ -0,0 +1,3 @@ +brun -c '(point_add (pubkey_for_exp (q . 2)))' +cost = 2771824 +0xa572cbea904d67468808c8eb50a9450c9721db309128012543902d0ac358a62ae28f75bb8f1c7c42c39a8c5529bf0f4e diff --git a/tests/brun/point-add-7.txt b/tests/brun/point-add-7.txt new file mode 100644 index 00000000..fb67720b --- /dev/null +++ b/tests/brun/point-add-7.txt @@ -0,0 +1,3 @@ +brun -c '(point_add (pubkey_for_exp (q . 3)))' +cost = 2771824 +0x89ece308f9d1f0131765212deca99697b112d61f9be9a5f1f3780a51335b3ff981747a0b2ca2179b96d2c0c9024e5224 diff --git a/tests/brun/point-add-8.txt b/tests/brun/point-add-8.txt new file mode 100644 index 00000000..c40454b4 --- /dev/null +++ b/tests/brun/point-add-8.txt @@ -0,0 +1,3 @@ +brun -c '(point_add (pubkey_for_exp (q . 4)))' +cost = 2771824 +0xac9b60d5afcbd5663a8a44b7c5a02f19e9a77ab0a35bd65809bb5c67ec582c897feb04decc694b13e08587f3ff9b5b60 diff --git a/tests/brun/point-add-9.txt b/tests/brun/point-add-9.txt new file mode 100644 index 00000000..eb4e5f16 --- /dev/null +++ b/tests/brun/point-add-9.txt @@ -0,0 +1,3 @@ +brun -c '(point_add (pubkey_for_exp (q . 5)))' +cost = 2771824 +0xb0e7791fb972fe014159aa33a98622da3cdc98ff707965e536d8636b5fcc5ac7a91a8c46e59a00dca575af0f18fb13dc diff --git a/tests/brun/point-add-a.txt b/tests/brun/point-add-a.txt new file mode 100644 index 00000000..c84b11e5 --- /dev/null +++ b/tests/brun/point-add-a.txt @@ -0,0 +1,3 @@ +brun -c '(point_add (pubkey_for_exp (q . -6)))' +cost = 2771824 +0x86e82f6da4520f85c5d27d8f329eccfa05944fd1096b20734c894966d12a9e2a9a9744529d7212d33883113a0cadb909