diff --git a/.gitmodules b/.gitmodules index 7a38ea9..079f700 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/src/hints/execute_task_hints.rs b/src/hints/execute_task_hints.rs index 514098c..2998e1a 100644 --- a/src/hints/execute_task_hints.rs +++ b/src/hints/execute_task_hints.rs @@ -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")) @@ -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(); diff --git a/src/hints/program_hash.rs b/src/hints/program_hash.rs index 881943f..d2e7a85 100644 --- a/src/hints/program_hash.rs +++ b/src/hints/program_hash.rs @@ -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( diff --git a/src/hints/program_loader.rs b/src/hints/program_loader.rs index bcd593c..8f65281 100644 --- a/src/hints/program_loader.rs +++ b/src/hints/program_loader.rs @@ -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")) diff --git a/src/hints/simple_bootloader_hints.rs b/src/hints/simple_bootloader_hints.rs index a0f2026..5ba3233 100644 --- a/src/hints/simple_bootloader_hints.rs +++ b/src/hints/simple_bootloader_hints.rs @@ -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") diff --git a/test-prgrams b/test-programs similarity index 100% rename from test-prgrams rename to test-programs