Skip to content

Commit

Permalink
Add assertion that test returns expected result.
Browse files Browse the repository at this point in the history
(That is, `exported_generic(A,B)` returns `(A, B+1 + 1+B - 1)`.)
  • Loading branch information
pnkfelix committed May 4, 2015
1 parent 3a401a9 commit 8b20251
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/run-pass/import-crate-with-invalid-spans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ fn main() {
// The AST of `exported_generic` stored in crate_with_invalid_spans's
// metadata should contain an invalid span where span.lo > span.hi.
// Let's make sure the compiler doesn't crash when encountering this.
let _ = crate_with_invalid_spans::exported_generic(32u32, 7u32);
let (a, b) = crate_with_invalid_spans::exported_generic(32u32, 7u32);
assert_eq!((a, b), (32u32, 8 + 8 - 1));
}

0 comments on commit 8b20251

Please sign in to comment.