Use assert_eq! rather than assert! where possible
This commit is contained in:
parent
3acf37897a
commit
cc57ca012a
641 changed files with 2809 additions and 2809 deletions
|
@ -20,11 +20,11 @@ pub mod m1 {
|
|||
macro_rules! indirect_line( () => ( line!() ) )
|
||||
|
||||
pub fn main() {
|
||||
assert!((line!() == 23));
|
||||
assert_eq!(line!(), 23);
|
||||
//assert!((col!() == 11));
|
||||
assert!((indirect_line!() == 25));
|
||||
assert_eq!(indirect_line!(), 25);
|
||||
assert!((file!().to_owned().ends_with(~"syntax-extension-source-utils.rs")));
|
||||
assert!((stringify!((2*3) + 5).to_owned() == ~"( 2 * 3 ) + 5"));
|
||||
assert_eq!(stringify!((2*3) + 5).to_owned(), ~"( 2 * 3 ) + 5");
|
||||
assert!(include!("syntax-extension-source-utils-files/includeme.fragment").to_owned()
|
||||
== ~"victory robot 6");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue