Skip to content

Commit fe84a8f

Browse files
authored
add playbot jokes to run-pass test
1 parent c732446 commit fe84a8f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

src/test/run-pass/weird-exprs.rs

+31
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,34 @@ fn angrydome() {
7777

7878
fn evil_lincoln() { let _evil = println!("lincoln"); }
7979

80+
fn dots() {
81+
assert_eq!(String::from(".................................................."),
82+
format!("{:?}", .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..));
83+
}
84+
85+
fn you_eight() {
86+
assert_eq!(8, {
87+
macro_rules! u8 {
88+
(u8) => {
89+
mod u8 {
90+
pub fn u8<'u8>(u8: &'u8 u8) -> &'u8 u8 {
91+
"u8";
92+
u8
93+
}
94+
}
95+
};
96+
}
97+
98+
u8!(u8);
99+
let &u8: &u8 = u8::u8(&8u8);
100+
u8
101+
});
102+
}
103+
104+
fn fishy() {
105+
assert_eq!(String::from("><>"), String::<>::from::<>("><>").chars::<>().rev::<>().collect::<String>());
106+
}
107+
80108
pub fn main() {
81109
strange();
82110
funny();
@@ -86,4 +114,7 @@ pub fn main() {
86114
canttouchthis();
87115
angrydome();
88116
evil_lincoln();
117+
dots();
118+
you_eight();
119+
fishy();
89120
}

0 commit comments

Comments
 (0)