- fs::create_dir_all(get_full_filepath(path.to_string(), filename.to_string())).unwrap();
- match write_to_file(path.to_string(), filename.to_string(), &test_writeable) {
- Err(e) => assert_eq!(e.kind(), io::ErrorKind::Other),
+ fs::create_dir_all(get_full_filepath(path.clone(), filename.to_string())).unwrap();
+ match write_to_file(path.clone(), filename.to_string(), &test_writeable) {
+ Err(e) => assert_eq!(e.raw_os_error(), Some(libc::EISDIR)),