Skip to content

Commit

Permalink
add ignored test for #1380
Browse files Browse the repository at this point in the history
  • Loading branch information
utaal committed Jan 9, 2025
1 parent 1496213 commit 5fd2be1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions source/rust_verify_test/tests/adts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1795,3 +1795,22 @@ test_verify_one_file! {
}
} => Ok(())
}

test_verify_one_file! {
#[ignore] #[test] test_is_panic_regression_1380 verus_code! {
use vstd::seq::*;

enum Alternative {
Yes,
No,
}

spec fn is_test_original(s: Seq<Option<Alternative>>) -> bool {
&&& forall|b:nat| b < s.len() ==> s[b as int] is Some(Alternative::Yes)
}

spec fn is_test_minimal(s: Seq<Option<Alternative>>) -> bool {
&&& forall|b:nat| s[b as int] is Some(Alternative::Yes)
}
} => Err(e) => assert_rust_error_msg(e, todo!())
}

0 comments on commit 5fd2be1

Please sign in to comment.