Skip to content

Commit

Permalink
test: add latest corner case
Browse files Browse the repository at this point in the history
  • Loading branch information
dndll committed Apr 15, 2024
1 parent 8f37287 commit 96b9114
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion nearx/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ mod beefy_tests {
let h = bytes32!("0x6fd201bb6c09c3708793945be6d5e2c3dc8c9fcf65e9e3ccf81d4720735e5fe6");

let define = |b: &mut B| {
SyncCircuit::<FixturesConfig<config::Testnet, 52>>::define(b);
SyncCircuit::<Testnet>::define(b);
};
let writer = |input: &mut PI| {
input.evm_write::<CryptoHashVariable>(h);
Expand All @@ -168,4 +168,21 @@ mod beefy_tests {
};
builder_suite(define, writer, assertions);
}

#[test]
#[serial]
#[ignore]
fn sync_e2e_latest_corner_case() {
// TODO: this is a new test with a corner case
let h = bytes32!("0x312a16eef866d75e9da24a5c65ce8b98597d5a903ef643018e144b8543c37a8b");

let define = |b: &mut B| {
SyncCircuit::<Testnet>::define(b);
};
let writer = |input: &mut PI| {
input.evm_write::<CryptoHashVariable>(h);
};
let assertions = |_output: PO| {};
builder_suite(define, writer, assertions);
}
}

0 comments on commit 96b9114

Please sign in to comment.