Added tests

This commit is contained in:
Syrus Akbary
2019-07-29 18:25:12 -07:00
parent c69bbd3334
commit 7bceb08b64

View File

@@ -812,3 +812,14 @@ fn main() {
}
}
}
#[test]
fn filesystem_cache_should_work() -> Result<(), String> {
let wasmer_cache_dir = get_cache_dir();
unsafe {
FileSystemCache::new(wasmer_cache_dir).map_err(|e| format!("Cache error: {:?}", e))?
};
Ok(())
}