diff options
| author | jakka <jakkadoujin@gmail.com> | 2025-07-07 14:17:16 +0300 |
|---|---|---|
| committer | jakka <jakkadoujin@gmail.com> | 2025-07-07 14:17:16 +0300 |
| commit | 8606b681b9c5dc702b78df46f6c7b851bbbfa697 (patch) | |
| tree | c2fde586152da1d22eaf277349af7cf981d6b44b /src/db.rs | |
| parent | 9b459adeafffcecdcb19e60806272a466e02b184 (diff) | |
fixed tests with new samples location
Diffstat (limited to 'src/db.rs')
| -rw-r--r-- | src/db.rs | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -158,7 +158,11 @@ mod tests { #[test] fn check_localfiles() { let dbname = String::from("temp1.db"); - let filenames = ["16bit.flac", "24bit.flac", "32bit.flac"]; + let filenames = [ + "./samples/16bit.flac", + "./samples/24bit.flac", + "./samples/32bit.flac", + ]; let mut counter = 0; let conn = Connection::new(Some(&dbname)).unwrap(); for file in filenames { @@ -177,7 +181,11 @@ mod tests { #[test] fn check_update() { let dbname = String::from("temp2.db"); - let filenames = ["16bit.flac", "24bit.flac", "32bit.flac"]; + let filenames = [ + "./samples/16bit.flac", + "./samples/24bit.flac", + "./samples/32bit.flac", + ]; let conn = Connection::new(Some(&dbname)).unwrap(); for file in filenames { conn.insert_file(Path::new(file).canonicalize().unwrap()) @@ -187,7 +195,7 @@ mod tests { conn.execute( REPLACE_ITEM, params