extern crate rustspec_assertions; use self::rustspec_assertions::{expect, be_lt}; #[test] fn be_lt_int_test() { expect(&1isize).to(be_lt!(2isize)); } #[test] #[should_panic] fn be_lt_int_equal_test_fail() { expect(&1isize).to(be_lt!(1isize)); } #[test] #[should_panic] fn be_lt_int_test_fail() { expect(&2isize).to(be_lt!(1isize)); } #[test] fn not_be_lt_int_test() { expect(&2isize).not_to(be_lt!(1isize)); } #[test] fn not_be_lt_int_equal_test() { expect(&1isize).not_to(be_lt!(1isize)); } #[test] #[should_panic] fn not_be_lt_int_equal_test_fail() { expect(&1isize).not_to(be_lt!(2isize)); } #[test] fn lt_f64_test() { expect(&1f64).to(be_lt!(1.1f64)); }