Sindbad~EG File Manager

Current Path : /usr/local/src/clamav-1.0.9/libclamav_rust/.cargo/vendor/libloading/tests/
Upload File :
Current File : //usr/local/src/clamav-1.0.9/libclamav_rust/.cargo/vendor/libloading/tests/library_filename.rs

extern crate libloading;
use libloading::library_filename;
use std::path::Path;

#[cfg(target_os = "windows")]
const EXPECTED: &str = "audioengine.dll";
#[cfg(target_os = "linux")]
const EXPECTED: &str = "libaudioengine.so";
#[cfg(target_os = "macos")]
const EXPECTED: &str = "libaudioengine.dylib";

#[test]
fn test_library_filename() {
    let name = "audioengine";
    let resolved = library_filename(name);
    assert!(Path::new(&resolved).ends_with(EXPECTED));
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists