Skip to content

Commit

Permalink
change test file path names + remove files named new
Browse files Browse the repository at this point in the history
  • Loading branch information
PatStiles committed Oct 25, 2024
1 parent 11308c0 commit be00703
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 13 deletions.
6 changes: 3 additions & 3 deletions operator/risc_zero/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ pub extern "C" fn verify_risc_zero_receipt_ffi(
mod tests {
use super::*;

const RECEIPT: &[u8] = include_bytes!("../../../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci_new.proof");
const RECEIPT: &[u8] = include_bytes!("../../../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci.proof");
const IMAGE_ID: &[u8] = include_bytes!(
"../../../../scripts/test_files/risc_zero/fibonacci_proof_generator/fibonacci_id_new.bin"
"../../../../scripts/test_files/risc_zero/fibonacci_proof_generator/fibonacci_id.bin"
);
const PUBLIC_INPUT: &[u8] = include_bytes!(
"../../../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci_new.pub"
"../../../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci.pub"
);

#[test]
Expand Down
6 changes: 3 additions & 3 deletions operator/risc_zero/risc_zero_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ import (
)

func TestFibonacciRiscZeroProofVerifies(t *testing.T) {
innerReceiptBytes, err := os.ReadFile("../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci_new.proof")
innerReceiptBytes, err := os.ReadFile("../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci.proof")
if err != nil {
t.Errorf("could not open proof file: %s", err)
}

imageIdBytes, err := os.ReadFile("../../scripts/test_files/risc_zero/fibonacci_proof_generator/fibonacci_id_new.bin")
imageIdBytes, err := os.ReadFile("../../scripts/test_files/risc_zero/fibonacci_proof_generator/fibonacci_id.bin")
if err != nil {
t.Errorf("could not open image id file: %s", err)
}

publicInputBytes, err := os.ReadFile("../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci_new.pub")
publicInputBytes, err := os.ReadFile("../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci.pub")
if err != nil {
t.Errorf("could not open public input file: %s", err)
}
Expand Down
6 changes: 3 additions & 3 deletions operator/risc_zero_old/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ pub extern "C" fn verify_risc_zero_receipt_old_ffi(
mod tests {
use super::*;

const RECEIPT: &[u8] = include_bytes!("../../../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci.proof");
const RECEIPT: &[u8] = include_bytes!("../../../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci_old.proof");
const IMAGE_ID: &[u8] = include_bytes!(
"../../../../scripts/test_files/risc_zero/fibonacci_proof_generator/fibonacci_id.bin"
"../../../../scripts/test_files/risc_zero/fibonacci_proof_generator/fibonacci_id_old.bin"
);
const PUBLIC_INPUT: &[u8] = include_bytes!(
"../../../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci.pub"
"../../../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci_old.pub"
);

#[test]
Expand Down
6 changes: 3 additions & 3 deletions operator/risc_zero_old/risc_zero_old_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ import (
)

func TestFibonacciRiscZeroProofVerifies(t *testing.T) {
innerReceiptBytes, err := os.ReadFile("../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci.proof")
innerReceiptBytes, err := os.ReadFile("../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci_old.proof")
if err != nil {
t.Errorf("could not open proof file: %s", err)
}

imageIdBytes, err := os.ReadFile("../../scripts/test_files/risc_zero/fibonacci_proof_generator/fibonacci_id.bin")
imageIdBytes, err := os.ReadFile("../../scripts/test_files/risc_zero/fibonacci_proof_generator/fibonacci_id_old.bin")
if err != nil {
t.Errorf("could not open image id file: %s", err)
}

publicInputBytes, err := os.ReadFile("../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci.pub")
publicInputBytes, err := os.ReadFile("../../scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci_old.pub")
if err != nil {
t.Errorf("could not open public input file: %s", err)
}
Expand Down

This file was deleted.

Binary file not shown.
Binary file not shown.

0 comments on commit be00703

Please sign in to comment.