Skip to content

Commit

Permalink
Use simpler values in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
AurelienFT committed Feb 2, 2024
1 parent 13adc33 commit 82d7d99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tests/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,26 +63,26 @@ fn get_changes() {
let mut id_builder = BasicIdBuilder::new();
let pair1 = (
vec![1, 2, 1],
Felt::from_hex("0x66342762FDD54D033c195fec3ce2568b62052e").unwrap(),
Felt::from_hex("0x01").unwrap(),
);
let bitvec = BitVec::from_vec(pair1.0.clone());
bonsai_storage.insert(&bitvec, &pair1.1).unwrap();
bonsai_storage.commit(id_builder.new_id()).unwrap();
let pair2 = (
vec![1, 2, 2],
Felt::from_hex("0x66342762FD54D033c195fec3ce2568b62052e").unwrap(),
Felt::from_hex("0x01").unwrap(),
);
let bitvec = BitVec::from_vec(pair2.0.clone());
bonsai_storage.insert(&bitvec, &pair2.1).unwrap();
let pair1_edited_1 = (
vec![1, 2, 1],
Felt::from_hex("0x66342762FDD54D033c195fec1ce2568b62052e").unwrap(),
Felt::from_hex("0x02").unwrap(),
);
let bitvec = BitVec::from_vec(pair1_edited_1.0.clone());
bonsai_storage.insert(&bitvec, &pair1_edited_1.1).unwrap();
let pair1_edited_2 = (
vec![1, 2, 1],
Felt::from_hex("0x66342762FDD54D033c195fec1ce2568b62051e").unwrap(),
Felt::from_hex("0x03").unwrap(),
);
let bitvec = BitVec::from_vec(pair1_edited_2.0.clone());
bonsai_storage.insert(&bitvec, &pair1_edited_2.1).unwrap();
Expand Down

0 comments on commit 82d7d99

Please sign in to comment.