m1!{...}
-> m1!(...)
This commit is contained in:
parent
226fd87199
commit
29f32b4a72
380 changed files with 5330 additions and 2706 deletions
|
@ -3,23 +3,23 @@
|
|||
|
||||
mod m1 {
|
||||
mod m2 {
|
||||
fn where_am_i() -> ~str { module_path!{} }
|
||||
fn where_am_i() -> ~str { module_path!() }
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
assert(line!{} == 11u);
|
||||
assert(col!{} == 11u);
|
||||
assert(file!{}.ends_with(~"syntax-extension-source-utils.rs"));
|
||||
assert(stringify!{(2*3) + 5} == ~"2 * 3 + 5");
|
||||
assert(include!{"syntax-extension-source-utils-files/includeme.fragment"}
|
||||
assert(line!() == 11u);
|
||||
assert(col!() == 11u);
|
||||
assert(file!().ends_with(~"syntax-extension-source-utils.rs"));
|
||||
assert(stringify!((2*3) + 5) == ~"2 * 3 + 5");
|
||||
assert(include!("syntax-extension-source-utils-files/includeme.fragment")
|
||||
== ~"victory robot 6");
|
||||
|
||||
assert(
|
||||
include_str!{"syntax-extension-source-utils-files/includeme.fragment"}
|
||||
include_str!("syntax-extension-source-utils-files/includeme.fragment")
|
||||
.starts_with(~"/* this is for "));
|
||||
assert(
|
||||
include_bin!{"syntax-extension-source-utils-files/includeme.fragment"}
|
||||
include_bin!("syntax-extension-source-utils-files/includeme.fragment")
|
||||
[1] == (42 as u8)); // '*'
|
||||
// The Windows tests are wrapped in an extra module for some reason
|
||||
assert(m1::m2::where_am_i().ends_with(~"m1::m2"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue