From ca6b8695b5e7b0f0d4101c68e8066869ec0ad2d7 Mon Sep 17 00:00:00 2001 From: damirka Date: Wed, 19 May 2021 20:50:43 +0300 Subject: [PATCH 1/2] disabled blake2s for now --- tests/compiler/core/blake2s.leo | 10 ++++------ .../compiler/compiler/core/blake2s.leo.out | 5 ----- .../compiler/compiler/core/unstable_blake2s.leo.out | 2 +- 3 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 tests/expectations/compiler/compiler/core/blake2s.leo.out diff --git a/tests/compiler/core/blake2s.leo b/tests/compiler/core/blake2s.leo index 8286c68fdd..2786313eba 100644 --- a/tests/compiler/core/blake2s.leo +++ b/tests/compiler/core/blake2s.leo @@ -1,9 +1,7 @@ -/* -namespace: Compile -expectation: Fail -input_files: - - input/dummy.in -*/ +// namespace: Compile +// expectation: Fail +// input_files: +// - input/dummy.in import core.unstable.blake2s.BadCircuit; // `BadCircuit` is not included in the blake2s package diff --git a/tests/expectations/compiler/compiler/core/blake2s.leo.out b/tests/expectations/compiler/compiler/core/blake2s.leo.out deleted file mode 100644 index 07c482845a..0000000000 --- a/tests/expectations/compiler/compiler/core/blake2s.leo.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - " --> compiler-test:3:30\n |\n 3 | import core.unstable.blake2s.BadCircuit; // `BadCircuit` is not included in the blake2s package\n | ^^^^^^^^^^\n |\n = failed to resolve import: 'core.unstable.blake2s.BadCircuit'" diff --git a/tests/expectations/compiler/compiler/core/unstable_blake2s.leo.out b/tests/expectations/compiler/compiler/core/unstable_blake2s.leo.out index 32b64e0840..81da568ba8 100644 --- a/tests/expectations/compiler/compiler/core/unstable_blake2s.leo.out +++ b/tests/expectations/compiler/compiler/core/unstable_blake2s.leo.out @@ -8,7 +8,7 @@ outputs: num_constraints: 20472 at: 43b5f7bd5efbf13ae0684e3c506e5e28866ce7a29f5d6b1442925913bb07a73b bt: 4d435c1eac471fb7b40b0d83503e2aa13f49db68fc71d64be84ddc9cb053a15d - ct: 081e529f5d26cb4cea2d8288ad454a8d0b381f2fb81e0bd21b47d4186777504f + ct: 33c36c0f947a6a63e03a8c09ebd13a98bcfb1af4a47982f5a765d1490b99f374 output: - input_file: blake.in output: From c4616254d4cb929155e869fd4f0bdb55ebec76a1 Mon Sep 17 00:00:00 2001 From: damirka Date: Wed, 19 May 2021 20:53:41 +0300 Subject: [PATCH 2/2] follow up, fixed wrong test --- tests/compiler/core/unstable_blake2s.leo | 18 ++++++++---------- .../compiler/core/unstable_blake2s.leo.out | 18 ------------------ 2 files changed, 8 insertions(+), 28 deletions(-) delete mode 100644 tests/expectations/compiler/compiler/core/unstable_blake2s.leo.out diff --git a/tests/compiler/core/unstable_blake2s.leo b/tests/compiler/core/unstable_blake2s.leo index 1229f457c4..6776d8a6ea 100644 --- a/tests/compiler/core/unstable_blake2s.leo +++ b/tests/compiler/core/unstable_blake2s.leo @@ -1,14 +1,12 @@ -/* -namespace: Compile -expectation: Pass -inputs: - - blake.in: | - [main] - message: [u8; 32] = [0; 32]; +// namespace: Compile +// expectation: Pass +// inputs: +// - blake.in: | +// [main] +// message: [u8; 32] = [0; 32]; - [registers] - r0: [u8; 32] = [0; 32]; -*/ +// [registers] +// r0: [u8; 32] = [0; 32]; import core.unstable.blake2s.Blake2s; diff --git a/tests/expectations/compiler/compiler/core/unstable_blake2s.leo.out b/tests/expectations/compiler/compiler/core/unstable_blake2s.leo.out deleted file mode 100644 index 81da568ba8..0000000000 --- a/tests/expectations/compiler/compiler/core/unstable_blake2s.leo.out +++ /dev/null @@ -1,18 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - circuit: - num_public_variables: 0 - num_private_variables: 20168 - num_constraints: 20472 - at: 43b5f7bd5efbf13ae0684e3c506e5e28866ce7a29f5d6b1442925913bb07a73b - bt: 4d435c1eac471fb7b40b0d83503e2aa13f49db68fc71d64be84ddc9cb053a15d - ct: 33c36c0f947a6a63e03a8c09ebd13a98bcfb1af4a47982f5a765d1490b99f374 - output: - - input_file: blake.in - output: - registers: - r0: - type: "[u8; 32]" - value: "[213, 24, 235, 180, 216, 116, 28, 65, 88, 162, 204, 6, 23, 8, 66, 112, 214, 239, 242, 134, 165, 39, 172, 247, 65, 130, 155, 2, 97, 147, 14, 57]"