rustspec_assertions 0.1.9

BDD style assertion library
extern crate rustspec_assertions;
use self::rustspec_assertions::{expect, be_ge};

#[test]
fn be_ge_int_test() {
    expect(&4isize).to(be_ge!(1isize));
}

#[test]
fn be_ge_int_equal_test() {
    expect(&1isize).to(be_ge!(1isize));
}

#[test]
#[should_panic]
fn be_ge_int_test_fail() {
    expect(&1isize).to(be_ge!(2isize));
}

#[test]
fn not_to_be_ge_int_test() {
    expect(&1isize).not_to(be_ge!(2isize));
}

#[test]
#[should_panic]
fn not_to_be_ge_int_equal_test() {
    expect(&1isize).not_to(be_ge!(1isize));
}

#[test]
#[should_panic]
fn not_to_be_ge_int_equal_test_fail() {
    expect(&2isize).not_to(be_ge!(1isize));
}

#[test]
fn gt_f64_test() {
    expect(&1.2f64).to(be_ge!(1f64));
}