add playbot jokes to run-pass test
This commit is contained in:
parent
c732446edd
commit
fe84a8f1da
|
@ -77,6 +77,34 @@ fn angrydome() {
|
||||||
|
|
||||||
fn evil_lincoln() { let _evil = println!("lincoln"); }
|
fn evil_lincoln() { let _evil = println!("lincoln"); }
|
||||||
|
|
||||||
|
fn dots() {
|
||||||
|
assert_eq!(String::from(".................................................."),
|
||||||
|
format!("{:?}", .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..));
|
||||||
|
}
|
||||||
|
|
||||||
|
fn you_eight() {
|
||||||
|
assert_eq!(8, {
|
||||||
|
macro_rules! u8 {
|
||||||
|
(u8) => {
|
||||||
|
mod u8 {
|
||||||
|
pub fn u8<'u8>(u8: &'u8 u8) -> &'u8 u8 {
|
||||||
|
"u8";
|
||||||
|
u8
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
u8!(u8);
|
||||||
|
let &u8: &u8 = u8::u8(&8u8);
|
||||||
|
u8
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
fn fishy() {
|
||||||
|
assert_eq!(String::from("><>"), String::<>::from::<>("><>").chars::<>().rev::<>().collect::<String>());
|
||||||
|
}
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
strange();
|
strange();
|
||||||
funny();
|
funny();
|
||||||
|
@ -86,4 +114,7 @@ pub fn main() {
|
||||||
canttouchthis();
|
canttouchthis();
|
||||||
angrydome();
|
angrydome();
|
||||||
evil_lincoln();
|
evil_lincoln();
|
||||||
|
dots();
|
||||||
|
you_eight();
|
||||||
|
fishy();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue