Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (30 sloc) 706 Bytes
#[macro_use]
extern crate descriptor;
extern crate expector;
use std::time::Duration;
use std::thread::sleep;
use descriptor::*;
use expector::prelude::*;
fn main() {
describe!("example group 1", |eg| {
it!(eg, "1", || {
expect(1).to(eq(2));
});
it!(eg, "2", || {
expect("abc").to(eq("def"));
});
it!(eg, "3", || {
expect(None).to(eq(Some(3)));
});
it!(eg, "works", || {
});
});
describe!("example group 2", |eg| {
it!(eg, "17", || {
});
it!(eg, "does a lot of hard work", || {
sleep(Duration::new(3, 0));
});
});
descriptor_main();
}
You can’t perform that action at this time.