diff options
| author | petrochenkov <vadim.petrochenkov@gmail.com> | 2015-06-07 21:00:38 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-06-13 14:55:55 +0300 |
| commit | bddb685e7322c8ffb9578ae9e5a3a161071b257b (patch) | |
| tree | f5621b38096baba4f3c3e9f0d08881b6ca21015e /src/test/parse-fail | |
| parent | a9f1e29c4ef68d09f3a926462e4be946d0749042 (diff) | |
| download | rust-bddb685e7322c8ffb9578ae9e5a3a161071b257b.tar.gz rust-bddb685e7322c8ffb9578ae9e5a3a161071b257b.zip | |
Use `assert_eq!` instead of `assert!` in tests
Diffstat (limited to 'src/test/parse-fail')
| -rw-r--r-- | src/test/parse-fail/macros-no-semicolon.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/parse-fail/macros-no-semicolon.rs b/src/test/parse-fail/macros-no-semicolon.rs index 9975609d8d3..5931631ccee 100644 --- a/src/test/parse-fail/macros-no-semicolon.rs +++ b/src/test/parse-fail/macros-no-semicolon.rs @@ -11,7 +11,7 @@ // compile-flags: -Z parse-only fn main() { - assert!(1 == 2) - assert!(3 == 4) //~ ERROR expected one of `.`, `;`, `}`, or an operator, found `assert` + assert_eq!(1, 2) + assert_eq!(3, 4) //~ ERROR expected one of `.`, `;`, `}`, or an operator, found `assert_eq` println!("hello"); } |
