Skip to content

Commit

Permalink
Update snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybosamiya committed Apr 9, 2024
1 parent f7a7115 commit a1d084d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/verus-snapshot/source/vstd/source/vstd/seq_lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,7 @@ impl<A> Seq<Seq<A>> {
self.len() == 1 ==> self.flatten() == self.first(),
{
broadcast use Seq::add_empty_right;

if self.len() == 1 {
assert(self.flatten() =~= self.first().add(self.drop_first().flatten()));
}
Expand Down Expand Up @@ -1022,6 +1023,7 @@ impl<A> Seq<Seq<A>> {
decreases self.len(),
{
broadcast use Seq::add_empty_right, Seq::push_distributes_over_add;

if self.len() != 0 {
self.drop_last().lemma_flatten_and_flatten_alt_are_equivalent();
seq![self.last()].lemma_flatten_one_element();
Expand Down
1 change: 1 addition & 0 deletions tests/verus-consistency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1990,6 +1990,7 @@ mod m4 {
p.inv(),
{
broadcast use Ring::properties;
assert(p.spec_succ().spec_prev() == p);
assert(p.spec_prev().spec_succ() == p);
}
Expand Down

0 comments on commit a1d084d

Please sign in to comment.