// -*- rust -*- fn main() { let int x = 1; x *= 2; log x; check (x == 2); x += 3; log x; check (x == 5); x *= x; log x; check (x == 25); x /= 5; log x; check (x == 5); } // -*- rust -*- fn main() { let int x = 1; x *= 2; log x; assert (x == 2); x += 3; log x; assert (x == 5); x *= x; log x; assert (x == 25); x /= 5; log x; assert (x == 5); } // -*- rust -*- fn main() { let int x = 1; x *= 2; log x; check (x == 2); x += 3; log x; check (x == 5); x *= x; log x; check (x == 25); x /= 5; log x; check (x == 5); } // -*- rust -*- fn main() { let int x = 1; x *= 2; log x; assert (x == 2); x += 3; log x; assert (x == 5); x *= x; log x; assert (x == 25); x /= 5; log x; assert (x == 5); } // -*- rust -*- fn main() { let int x = 1; x *= 2; log x; assert (x == 2); x += 3; log x; assert (x == 5); x *= x; log x; assert (x == 25); x /= 5; log x; assert (x == 5); } // -*- rust -*- fn main() { let x: int = 1; x *= 2; log x; assert (x == 2); x += 3; log x; assert (x == 5); x *= x; log x; assert (x == 25); x /= 5; log x; assert (x == 5); } // -*- rust -*- fn main() { let x: int = 1; x *= 2; log x; assert (x == 2); x += 3; log x; assert (x == 5); x *= x; log x; assert (x == 25); x /= 5; log x; assert (x == 5); } // -*- rust -*- fn main() { let x: int = 1; x *= 2; log_full(core::debug, x); assert (x == 2); x += 3; log_full(core::debug, x); assert (x == 5); x *= x; log_full(core::debug, x); assert (x == 25); x /= 5; log_full(core::debug, x); assert (x == 5); } // -*- rust -*- fn main() { let x: int = 1; x *= 2; log(debug, x); assert (x == 2); x += 3; log(debug, x); assert (x == 5); x *= x; log(debug, x); assert (x == 25); x /= 5; log(debug, x); assert (x == 5); } // -*- rust -*- fn main() { let mut x: int = 1; x *= 2; log(debug, x); assert (x == 2); x += 3; log(debug, x); assert (x == 5); x *= x; log(debug, x); assert (x == 25); x /= 5; log(debug, x); assert (x == 5); } // 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. // -*- rust -*- fn main() { let mut x: int = 1; x *= 2; log(debug, x); assert (x == 2); x += 3; log(debug, x); assert (x == 5); x *= x; log(debug, x); assert (x == 25); x /= 5; log(debug, x); assert (x == 5); } // 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. // -*- rust -*- pub fn main() { let mut x: int = 1; x *= 2; log(debug, x); assert (x == 2); x += 3; log(debug, x); assert (x == 5); x *= x; log(debug, x); assert (x == 25); x /= 5; log(debug, x); assert (x == 5); } // 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. // -*- rust -*- pub fn main() { let mut x: int = 1; x *= 2; log(debug, x); fail_unless!((x == 2)); x += 3; log(debug, x); fail_unless!((x == 5)); x *= x; log(debug, x); fail_unless!((x == 25)); x /= 5; log(debug, x); fail_unless!((x == 5)); } // 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. // -*- rust -*- pub fn main() { let mut x: int = 1; x *= 2; debug!(x); fail_unless!((x == 2)); x += 3; debug!(x); fail_unless!((x == 5)); x *= x; debug!(x); fail_unless!((x == 25)); x /= 5; debug!(x); fail_unless!((x == 5)); } // 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. // -*- rust -*- pub fn main() { let mut x: int = 1; x *= 2; debug!(x); assert!((x == 2)); x += 3; debug!(x); assert!((x == 5)); x *= x; debug!(x); assert!((x == 25)); x /= 5; debug!(x); assert!((x == 5)); } // 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. // -*- rust -*- pub fn main() { let mut x: int = 1; x *= 2; debug!(x); assert_eq!(x, 2); x += 3; debug!(x); assert_eq!(x, 5); x *= x; debug!(x); assert_eq!(x, 25); x /= 5; debug!(x); assert_eq!(x, 5); } // 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. // -*- rust -*- pub fn main() { let mut x: int = 1; x *= 2; info!(x); assert_eq!(x, 2); x += 3; info!(x); assert_eq!(x, 5); x *= x; info!(x); assert_eq!(x, 25); x /= 5; info!(x); assert_eq!(x, 5); } // 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. // -*- rust -*- pub fn main() { let mut x: int = 1; x *= 2; info2!("{}", x); assert_eq!(x, 2); x += 3; info2!("{}", x); assert_eq!(x, 5); x *= x; info2!("{}", x); assert_eq!(x, 25); x /= 5; info2!("{}", x); assert_eq!(x, 5); } // 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. // -*- rust -*- pub fn main() { let mut x: int = 1; x *= 2; info!("{}", x); assert_eq!(x, 2); x += 3; info!("{}", x); assert_eq!(x, 5); x *= x; info!("{}", x); assert_eq!(x, 25); x /= 5; info!("{}", x); assert_eq!(x, 5); } // 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. pub fn main() { let mut x: int = 1; x *= 2; info!("{}", x); assert_eq!(x, 2); x += 3; info!("{}", x); assert_eq!(x, 5); x *= x; info!("{}", x); assert_eq!(x, 25); x /= 5; info!("{}", x); assert_eq!(x, 5); } // 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. pub fn main() { let mut x: int = 1; x *= 2; println!("{}", x); assert_eq!(x, 2); x += 3; println!("{}", x); assert_eq!(x, 5); x *= x; println!("{}", x); assert_eq!(x, 25); x /= 5; println!("{}", x); assert_eq!(x, 5); } // 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. pub fn main() { let mut x: isize = 1; x *= 2; println!("{}", x); assert_eq!(x, 2); x += 3; println!("{}", x); assert_eq!(x, 5); x *= x; println!("{}", x); assert_eq!(x, 25); x /= 5; println!("{}", x); assert_eq!(x, 5); }