Skip to content

Commit 85ed0dc

Browse files
committed
Merge branch 'arbitrary-felts-sqrt-and-proptests' of github.com:lambdaclass/cairo-rs into arbitrary-felts-sqrt-and-proptests
2 parents 1d8dd0b + a3f07cd commit 85ed0dc

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#[contract]
2+
mod Felt252Dict {
3+
4+
use dict::{felt252_dict_entry_finalize, Felt252DictTrait};
5+
6+
#[external]
7+
fn update_dict() {
8+
let mut dict = felt252_dict_new::<felt252>();
9+
dict.insert(1, 64);
10+
dict.insert(2, 75);
11+
dict.insert(3, 75);
12+
dict.squash();
13+
}
14+
}

src/tests/cairo_1_run_from_entrypoint_tests.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,14 @@ fn linear_split() {
459459
);
460460
}
461461

462+
#[test]
463+
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
464+
fn assert_le_find_small_arcs() {
465+
let program_data =
466+
include_bytes!("../../cairo_programs/cairo-1-contracts/assert_le_find_small_arcs.casm");
467+
run_cairo_1_entrypoint(program_data.as_slice(), 0, &[], &[]);
468+
}
469+
462470
#[test]
463471
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
464472
fn felt252_dict_entry_init() {

0 commit comments

Comments
 (0)