Skip to content

Commit

Permalink
Remove underscore prefix from test file names (#1588)
Browse files Browse the repository at this point in the history
* Rename files

* Rename file

* Update tests

* Update symlinks

---------

Co-authored-by: Mario Rugiero <[email protected]>
  • Loading branch information
fmoletta and Oppen authored Jan 22, 2024
1 parent 3b5be72 commit 3dc01e2
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
File renamed without changes.
1 change: 0 additions & 1 deletion cairo_programs/proof_programs/_keccak.cairo

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions cairo_programs/proof_programs/keccak.cairo
8 changes: 4 additions & 4 deletions vm/src/serde/serialize_program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,14 +250,14 @@ mod tests {
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
fn program_json_from_program_test() {
let programs_bytes: Vec<Vec<u8>> = [
include_bytes!("../../../cairo_programs/_keccak.json").to_vec(),
include_bytes!("../../../cairo_programs/keccak.json").to_vec(),
include_bytes!("../../../cairo_programs/assert_nn.json").to_vec(),
include_bytes!("../../../cairo_programs/bitwise_recursion.json").to_vec(),
include_bytes!("../../../cairo_programs/blake2s_felts.json").to_vec(),
include_bytes!("../../../cairo_programs/cairo_finalize_keccak_block_size_1000.json")
.to_vec(),
include_bytes!("../../../cairo_programs/bitwise_recursion.json").to_vec(),
include_bytes!("../../../cairo_programs/_keccak.json").to_vec(),
include_bytes!("../../../cairo_programs/keccak.json").to_vec(),
include_bytes!("../../../cairo_programs/ec_double_slope.json").to_vec(),
include_bytes!("../../../cairo_programs/example_blake2s.json").to_vec(),
include_bytes!("../../../cairo_programs/fibonacci.json").to_vec(),
Expand Down Expand Up @@ -291,14 +291,14 @@ mod tests {
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
fn serialize_and_deserialize_programs() {
let programs_bytes: Vec<Vec<u8>> = [
include_bytes!("../../../cairo_programs/_keccak.json").to_vec(),
include_bytes!("../../../cairo_programs/keccak.json").to_vec(),
include_bytes!("../../../cairo_programs/assert_nn.json").to_vec(),
include_bytes!("../../../cairo_programs/bitwise_recursion.json").to_vec(),
include_bytes!("../../../cairo_programs/blake2s_felts.json").to_vec(),
include_bytes!("../../../cairo_programs/cairo_finalize_keccak_block_size_1000.json")
.to_vec(),
include_bytes!("../../../cairo_programs/bitwise_recursion.json").to_vec(),
include_bytes!("../../../cairo_programs/_keccak.json").to_vec(),
include_bytes!("../../../cairo_programs/keccak.json").to_vec(),
include_bytes!("../../../cairo_programs/ec_double_slope.json").to_vec(),
include_bytes!("../../../cairo_programs/example_blake2s.json").to_vec(),
include_bytes!("../../../cairo_programs/fibonacci.json").to_vec(),
Expand Down
4 changes: 2 additions & 2 deletions vm/src/tests/cairo_run_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ fn keccak_add_uint256() {
#[test]
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
fn keccak() {
let program_data = include_bytes!("../../../cairo_programs/_keccak.json");
let program_data = include_bytes!("../../../cairo_programs/keccak.json");
run_program_simple(program_data.as_slice());
}

Expand Down Expand Up @@ -732,7 +732,7 @@ fn mul_s_inv() {
#[test]
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
fn keccak_alternative_hint() {
let program_data = include_bytes!("../../../cairo_programs/_keccak_alternative_hint.json");
let program_data = include_bytes!("../../../cairo_programs/keccak_alternative_hint.json");
run_program_simple(program_data.as_slice());
}

Expand Down
2 changes: 1 addition & 1 deletion vm/src/vm/runners/builtin_runner/keccak.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ mod tests {

vm.segments.segment_used_sizes = Some(vec![0]);
let program = Program::from_bytes(
include_bytes!("../../../../../cairo_programs/_keccak.json"),
include_bytes!("../../../../../cairo_programs/keccak.json"),
Some("main"),
)
.unwrap();
Expand Down

0 comments on commit 3dc01e2

Please sign in to comment.