Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
drspacemn committed Sep 27, 2023
1 parent 6c3bdf3 commit c034e9a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v3
- run: rustup show
- uses: Swatinem/rust-cache@v2
- run: cargo clippy
- run: cargo clippy --all -- -D warnings

tests:
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ pub fn compile_contracts() -> HashMap<String, Vec<u8>> {
#[fixture]
pub fn setup_runner(compile_contracts: &HashMap<String, Vec<u8>>) -> (CairoRunner, VirtualMachine) {
// Load the test program
// let program_content = include_bytes!("../build/fact.json");
let program_content = compile_contracts.get("build/fact.json").unwrap();

let mut hint_processor = BuiltinHintProcessor::new_empty();
Expand Down
6 changes: 1 addition & 5 deletions tests/snos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ fn snos_ok() {
fn custom_hint_ok(compile_contracts: &HashMap<String, Vec<u8>>) {
let program_content = compile_contracts.get("build/hint.json").unwrap();

// let program_content = include_bytes!("../build/hint.json");

// Wrap the Rust hint implementation in a Box smart pointer inside a HintFunc
let hint = HintFunc(Box::new(print_a_hint));

Expand Down Expand Up @@ -70,8 +68,6 @@ fn custom_hint_ok(compile_contracts: &HashMap<String, Vec<u8>>) {
fn test_different_outputs(compile_contracts: &HashMap<String, Vec<u8>>) {
let program_content = compile_contracts.get("build/hint.json").unwrap();

// let program_content = include_bytes!("../build/hint.json");

// Wrap the Rust hint implementation in a Box smart pointer inside a HintFunc
let hint = HintFunc(Box::new(print_a_hint));

Expand All @@ -90,6 +86,6 @@ fn test_different_outputs(compile_contracts: &HashMap<String, Vec<u8>>) {
},
&mut hint_processor,
)
.expect("Couldn't run programm");
.expect("Couldn't run program");
check_output_vs_python("build/different_output.json", virtual_machine);
}

0 comments on commit c034e9a

Please sign in to comment.