2012-12-10 17:32:48 -08:00
|
|
|
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2010-06-23 21:03:09 -07:00
|
|
|
|
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2014-06-27 12:30:25 -07:00
|
|
|
if 1i == 2 {
|
2013-03-28 18:39:09 -07:00
|
|
|
assert!((false));
|
2014-06-27 12:30:25 -07:00
|
|
|
} else if 2i == 3 {
|
2013-03-28 18:39:09 -07:00
|
|
|
assert!((false));
|
2014-06-27 12:30:25 -07:00
|
|
|
} else if 3i == 4 { assert!((false)); } else { assert!((true)); }
|
|
|
|
if 1i == 2 { assert!((false)); } else if 2i == 2 { assert!((true)); }
|
|
|
|
if 1i == 2 {
|
2013-03-28 18:39:09 -07:00
|
|
|
assert!((false));
|
2014-06-27 12:30:25 -07:00
|
|
|
} else if 2i == 2 {
|
|
|
|
if 1i == 1 {
|
2013-03-28 18:39:09 -07:00
|
|
|
assert!((true));
|
2014-06-27 12:30:25 -07:00
|
|
|
} else { if 2i == 1 { assert!((false)); } else { assert!((false)); } }
|
2011-03-14 19:57:12 -04:00
|
|
|
}
|
2014-06-27 12:30:25 -07:00
|
|
|
if 1i == 2 {
|
2013-03-28 18:39:09 -07:00
|
|
|
assert!((false));
|
2014-06-27 12:30:25 -07:00
|
|
|
} else { if 1i == 2 { assert!((false)); } else { assert!((true)); } }
|
2011-08-19 15:16:48 -07:00
|
|
|
}
|