Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
66bf53ac3321167d7b7710c9b3bbac14ba009f7d
rust/tests/ui/macros/assert-eq-macro-panic.rs

10 lines
196 B
Rust
Raw Normal View History

[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-fail
//@ error-pattern:assertion `left == right` failed
//@ error-pattern: left: 14
//@ error-pattern: right: 15
//@ ignore-emscripten no processes
add assert_eq! macro the assert_eq! macro compares its arguments and fails if they're not equal. It's more informative than fail_unless!, because it explicitly writes the given and expected arguments on failure.
2013-03-13 12:10:32 -07:00
fn main() {
run rustfmt on test/run-fail folder
2016-05-27 08:09:36 +05:30
assert_eq!(14, 15);
add assert_eq! macro the assert_eq! macro compares its arguments and fails if they're not equal. It's more informative than fail_unless!, because it explicitly writes the given and expected arguments on failure.
2013-03-13 12:10:32 -07:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3947ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API