/src/test/run-pass/arith-0.rs

http://github.com/jruderman/rust · Rust · 7 lines · 5 code · 2 blank · 0 comment · 1 complexity · 0aa07530db1595f2523f44837c68dc8c MD5 · raw file

  1. fn main() {
  2. let a: int = 10;
  3. log(debug, a);
  4. assert (a * (a - 1) == 90);
  5. }