Skip to content

Commit 2b0edfb

Browse files
hyperpolymathclaude
andcommitted
test(ffi): update kind_from_u8 out-of-range boundary 105→113
Test hardcoded the upper bound at 105, but commit c8c0acf added 8 new ProverKind variants (CubicalAgda, Zipperposition, Prover9, OpenSMT, SmtRat, Rocq, UppaalStratego, MizAR) so 105 is now valid. Update the boundary to 113 (= 113-variant enum) + add a comment citing the variant-adding commit so the next boundary move is traceable. Fix caught by full-repo audit 2026-04-24. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0d8853a commit 2b0edfb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/rust/ffi/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,8 +1410,11 @@ mod tests {
14101410

14111411
#[test]
14121412
fn test_kind_from_u8_out_of_range() {
1413-
// 0–104 are valid; 105+ are out of range.
1414-
assert!(kind_from_u8(105).is_none());
1413+
// 0–112 are valid; 113+ are out of range.
1414+
// (Boundary moved 104→112 in commit c8c0acf which added 8 new ProverKind
1415+
// variants: CubicalAgda, Zipperposition, Prover9, OpenSMT, SmtRat,
1416+
// Rocq, UppaalStratego, MizAR.)
1417+
assert!(kind_from_u8(113).is_none());
14151418
assert!(kind_from_u8(128).is_none());
14161419
assert!(kind_from_u8(255).is_none());
14171420
}

0 commit comments

Comments
 (0)