Skip to content

Commit 40ebcb7

Browse files
committed
Add a ui test with an assertion that has a really long condition.
The `\n` in the output is a little surprising. The next commit will deal with it.
1 parent bf9a1c8 commit 40ebcb7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// run-fail
2+
// check-run-results
3+
// ignore-emscripten no processes
4+
// ignore-tidy-linelength
5+
6+
fn main() {
7+
assert!(1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 == 0);
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
thread 'main' panicked at $DIR/assert-long-condition.rs:7:5:
2+
assertion failed: 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18\n + 19 + 20 + 21 + 22 + 23 + 24 + 25 == 0
3+
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

0 commit comments

Comments
 (0)