Update line numbers to reflect added lines at beginning of tests.

This commit is contained in:
Felix S. Klock II 2018-08-31 15:26:17 +02:00
parent 90412f149c
commit dc7685e958
2 changed files with 7 additions and 7 deletions

View file

@ -32,9 +32,9 @@ fn main() {
columnline!()
} else { (0, 0) };
let cl = columnline!();
assert_eq!(closure(), (9, 25));
assert_eq!(iflet, (9, 28));
assert_eq!(cl, (14, 30));
assert_eq!(closure(), (9, 29));
assert_eq!(iflet, (9, 32));
assert_eq!(cl, (14, 34));
let indirect = indirectcolumnline!();
assert_eq!(indirect, (20, 34));
assert_eq!(indirect, (20, 38));
}

View file

@ -24,9 +24,9 @@ pub mod m1 {
macro_rules! indirect_line { () => ( line!() ) }
pub fn main() {
assert_eq!(line!(), 24);
assert_eq!(line!(), 27);
assert_eq!(column!(), 16);
assert_eq!(indirect_line!(), 26);
assert_eq!(indirect_line!(), 29);
assert!((file!().ends_with("syntax-extension-source-utils.rs")));
assert_eq!(stringify!((2*3) + 5).to_string(), "( 2 * 3 ) + 5".to_string());
assert!(include!("syntax-extension-source-utils-files/includeme.\
@ -43,5 +43,5 @@ pub fn main() {
// The Windows tests are wrapped in an extra module for some reason
assert!((m1::m2::where_am_i().ends_with("m1::m2")));
assert_eq!((43, "( 2 * 3 ) + 5"), (line!(), stringify!((2*3) + 5)));
assert_eq!((46, "( 2 * 3 ) + 5"), (line!(), stringify!((2*3) + 5)));
}