Skip to content

Commit 69f050a

Browse files
committed
Add working tests
1 parent b0a5214 commit 69f050a

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

crates/charon-core/src/qbft/internal_test.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,3 +448,23 @@ fn happy_0() {
448448
..Default::default()
449449
});
450450
}
451+
452+
#[test]
453+
fn happy_1() {
454+
test_qbft(Test {
455+
instance: 1,
456+
decide_round: 1,
457+
..Default::default()
458+
});
459+
}
460+
461+
#[test]
462+
fn prepare_round_1_decide_round_2() {
463+
test_qbft(Test {
464+
instance: 0,
465+
commits_after: 1,
466+
decide_round: 2,
467+
prepared_val: 1,
468+
..Default::default()
469+
});
470+
}

0 commit comments

Comments
 (0)