rust/src/test/run-pass/else-if.rs
Brian Anderson 518dc52f85 Reformat
This changes the indexing syntax from .() to [], the vector syntax from ~[] to
[] and the extension syntax from #fmt() to #fmt[]
2011-08-20 11:04:00 -07:00

21 lines
535 B
Rust

fn main() {
if 1 == 2 {
assert (false);
} else if 2 == 3 {
assert (false);
} else if 3 == 4 { assert (false); } else { assert (true); }
if 1 == 2 { assert (false); } else if 2 == 2 { assert (true); }
if 1 == 2 {
assert (false);
} else if 2 == 2 {
if 1 == 1 {
assert (true);
} else { if 2 == 1 { assert (false); } else { assert (false); } }
}
if 1 == 2 {
assert (false);
} else { if 1 == 2 { assert (false); } else { assert (true); } }
}