pub fn test<F, R>(
    ncases: &mut u64,
    failurecases: &mut Vec<String>,
    f: F,
    name: &str
)where
    F: FnOnce() -> R + UnwindSafe,