From 752585cf42393ccd5c63184e404d291112610744 Mon Sep 17 00:00:00 2001 From: Bartosz Nowak Date: Sat, 6 Jan 2024 16:39:44 +0100 Subject: [PATCH] test skaffold --- src/proof_of_work/tests.cairo | 1 + src/proof_of_work/tests/test_proof_of_work.cairo | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 src/proof_of_work/tests/test_proof_of_work.cairo diff --git a/src/proof_of_work/tests.cairo b/src/proof_of_work/tests.cairo index e69de29bb..1164558f8 100644 --- a/src/proof_of_work/tests.cairo +++ b/src/proof_of_work/tests.cairo @@ -0,0 +1 @@ +mod test_proof_of_work; \ No newline at end of file diff --git a/src/proof_of_work/tests/test_proof_of_work.cairo b/src/proof_of_work/tests/test_proof_of_work.cairo new file mode 100644 index 000000000..0f1401677 --- /dev/null +++ b/src/proof_of_work/tests/test_proof_of_work.cairo @@ -0,0 +1,10 @@ +use cairo_verifier::proof_of_work::proof_of_work::verify_proof_of_work; + +#[test] +#[available_gas(9999999999)] +fn test_verify_proof_of_work_0() { + let digest: u256 = 0x1c5a5f4381df1f5cd7ca1d48a19d8ff802a71d94169de38382621fdc5514a10a; + let nonce: u64 = 0x1683b; + let n_bits: u8 = 20; + verify_proof_of_work(digest, n_bits, nonce); +}