testing the ctrc_c setup function

This commit is contained in:
Nickiel12 2021-12-18 18:34:36 -08:00
parent 9c1c035026
commit d2b5ea643d

View file

@ -1,3 +1,4 @@
use workctl::sync_flag;
#[test]
@ -6,4 +7,10 @@ fn it_works() {
assert_eq!(result, 4);
}
#[test]
fn can_make_ctrl_c_handler() {
let (control_c_flag_tx, control_c_called_flag_rx) = sync_flag::new_syncflag(false);
crate::setup_control_c(control_c_flag_tx);
}