mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 11:34:11 +00:00
Fix tests
This commit is contained in:
parent
e5c3aac0b4
commit
b03af365fa
@ -28,9 +28,9 @@ fn main() {
|
||||
columnline!()
|
||||
} else { (0, 0) };
|
||||
let cl = columnline!();
|
||||
assert_eq!(closure(), (8, 25));
|
||||
assert_eq!(iflet, (8, 28));
|
||||
assert_eq!(cl, (13, 30));
|
||||
assert_eq!(closure(), (9, 25));
|
||||
assert_eq!(iflet, (9, 28));
|
||||
assert_eq!(cl, (14, 30));
|
||||
let indirect = indirectcolumnline!();
|
||||
assert_eq!(indirect, (19, 34));
|
||||
assert_eq!(indirect, (20, 34));
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ macro_rules! indirect_line { () => ( line!() ) }
|
||||
|
||||
pub fn main() {
|
||||
assert_eq!(line!(), 24);
|
||||
assert_eq!(column!(), 15);
|
||||
assert_eq!(column!(), 16);
|
||||
assert_eq!(indirect_line!(), 26);
|
||||
assert!((file!().ends_with("syntax-extension-source-utils.rs")));
|
||||
assert_eq!(stringify!((2*3) + 5).to_string(), "( 2 * 3 ) + 5".to_string());
|
||||
|
Loading…
Reference in New Issue
Block a user