use playhead::PlayHead;
use std::{thread, time};
#[test]
fn seq(){
let mut ph = PlayHead::new();
ph.play();
let time_one = ph.time();
let delay = time::Duration::from_millis(2000);
thread::sleep(delay);
let time_two = ph.time();
ph.pause();
thread::sleep(delay);
let time_three = ph.time();
assert!(time_two > time_one);
assert_eq!(time_two, time_three);
}