Skip to content

Commit

Permalink
update: the missing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
whichqua committed Jun 5, 2024
1 parent 6234733 commit daacd87
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "dependencies/cairo-lang"]
path = dependencies/cairo-lang
url = https://github.com/starkware-libs/cairo-lang
[submodule "test-prgrams"]
path = test-prgrams
[submodule "test-programs"]
path = test-programs
url = https://github.com/Moonsong-Labs/cairo-programs
6 changes: 3 additions & 3 deletions src/hints/execute_task_hints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ mod tests {
#[fixture]
fn fibonacci() -> Program {
let program_content =
include_bytes!("../dependencies/cairo-programs/cairo0/fibonacci/fibonacci.json")
include_bytes!("../../test-programs/cairo0/fibonacci/fibonacci.json")
.to_vec();

Program::from_bytes(&program_content, Some("main"))
Expand All @@ -556,14 +556,14 @@ mod tests {

#[fixture]
fn fibonacci_pie() -> CairoPie {
let pie_file = Path::new("../dependencies/cairo-programs/cairo0/fibonacci/fibonacci.zip");
let pie_file = Path::new("../../test-programs/bootloader/pies/fibonacci/cairo_pie.zip");
CairoPie::read_zip_file(pie_file).expect("Failed to load the program PIE")
}

#[fixture]
fn field_arithmetic_program() -> Program {
let program_content = include_bytes!(
"../dependencies/cairo-programs/cairo0/field-arithmetic/field_arithmetic.json"
"../../test-programs/cairo0/field-arithmetic/field_arithmetic.json"
)
.to_vec();

Expand Down
6 changes: 3 additions & 3 deletions src/hints/program_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,15 @@ mod tests {
#[rstest]
// Expected hashes generated with `cairo-hash-program`
#[case::fibonacci(
"../dependencies/cairo-programs/cairo0/fibonacci/fibonacci.json",
"./test-programs/cairo0/fibonacci/fibonacci.json",
"0x6fc56a47599a5cc20bb3c6d4c5397f872bb6269f036e383f4c13986d4020952"
)]
#[case::field_arithmetic(
"../dependencies/cairo-programs/cairo0/field-arithmetic/field_arithmetic.json",
"./test-programs/cairo0/field-arithmetic/field_arithmetic.json",
"0xdc5a7432daec36bb707aa9f8cbcd60a2c5a4f5b16dbe7a4b6d96d5bfdd2a43"
)]
#[case::keccak_copy_inputs(
"../dependencies/cairo-programs/cairo0/keccak-copy-inputs/keccak_copy_inputs.json",
"./test-programs/cairo0/keccak-copy-inputs/keccak_copy_inputs.json",
"0x79e69539b9bbcc863519fb17f864c3439277cd851146f30d1ce0232fb358632"
)]
fn test_compute_program_hash_chain(
Expand Down
2 changes: 1 addition & 1 deletion src/hints/program_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ mod tests {
#[fixture]
fn fibonacci() -> Program {
let program_content =
include_bytes!("../dependencies/cairo-programs/cairo0/fibonacci/fibonacci.json")
include_bytes!("../../test-programs/cairo0/fibonacci/fibonacci.json")
.to_vec();

Program::from_bytes(&program_content, Some("main"))
Expand Down
2 changes: 1 addition & 1 deletion src/hints/simple_bootloader_hints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ mod tests {
#[fixture]
fn fibonacci() -> Program {
let program_content =
include_bytes!("../dependencies/cairo-programs/cairo0/fibonacci/fibonacci.json").to_vec();
include_bytes!("../../test-programs/cairo0/fibonacci/fibonacci.json").to_vec();

Program::from_bytes(&program_content, Some("main"))
.expect("Loading example program failed unexpectedly")
Expand Down

0 comments on commit daacd87

Please sign in to comment.