Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert_eq! hits unreachable code #292

Open
obriematt opened this issue Aug 22, 2016 · 0 comments
Open

Assert_eq! hits unreachable code #292

obriematt opened this issue Aug 22, 2016 · 0 comments

Comments

@obriematt
Copy link

obriematt commented Aug 22, 2016

Testing for assert_eq! seems to be hitting unreachable code within weakest_precondition line 80.

It doesn't seem to contain "begin_panic" like our code is expecting.

Current test that doesn't work:

// Should be valid
#[condition(pre="x: i32 == 10i32", post="true")]
fn valid_simple_assertion_eq(x: i32) {
    assert_eq!(x, 10);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant