ZSO6T3AM36JCKVGEZEIC6NA7WWESSW73TVM67W3BOWUPOSBHZEFQC
SV62MQWEGBDJ3SFJDQC2R34EXZGBRJ7QGJRTKI2FVLNES4IOPZIAC
L3I4GC7R74HPQS3VCQ44UTBAKKBOW6UDVXV2EF7XSWH7H2Z3RRJQC
XIHPYOWDLQY2MVMVUQPH23O3TBALRG4G2CHSLWSCAYMY5NVJ32WQC
IFBRAMVLQ4Z6BAEMWDIXD2V5HSZK4DHRWYZNB32IBY7ZRTNZJVCQC
JYSIHNS67XTGAR4HN7ZHWFMGGYSK5IY6J6EHO4YUZOR7UMMWAORQC
UX4YE27CC5I4OFW5DMEKHTIGUUGMCAM6X5S4NXPTS7XK4MJLUKHQC
RJYDXOHXMLODTAP3LNIWD4NLPIDL7IXZYS4EURZLJESLWJUEZGHAC
76TBVFPIFU3LSMXY5NAHZBH6HRJLSLK43PGOPL6QQ2YYVBJ64QAQC
476KTQSS5NXVCTVLVZQRGSYD5OAFBYG75VTSWBN26Q45RSMRT5YQC
UIMZBURR7KOWSREO4GDH5C2LZDUTEZBKQNYWBYSFGUTRYJ4GKSNQC
5JMYBRF3UYX4LFH7JK6S4BEDKRVKDFIL4YKTCWKMKP4TMNNGQFKQC
5FEMSWRS6SMVKBJAV4IYJLEJ2CML6QNZM75UGQFIIMAR5FBAACXAC
ADXMUSFXOKBPCHW4XS3T4KLWMPGQPYDMZW6YFFSHZPAQKEGIKCBQC
EEJ6CBJRTXLPQP44I2RLWVLJBX565DXXAWU4JIWNA3MMNE7WB5LQC
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_find_extension_mp3() {
assert_eq!(find_extension("test.mp3"), Some(".mp3"))
}
#[test]
fn test_find_extension_m4a() {
assert_eq!(find_extension("test.m4a"), Some(".m4a"))
}
#[test]
fn test_find_extension_wav() {
assert_eq!(find_extension("test.wav"), Some(".wav"))
}
#[test]
fn test_find_extension_ogg() {
assert_eq!(find_extension("test.ogg"), Some(".ogg"))
}
#[test]
fn test_find_extension_opus() {
assert_eq!(find_extension("test.opus"), Some(".opus"))
}
#[test]
fn test_find_extension_invalid() {
assert_eq!(find_extension("test.taco"), None)
}
#[test]
fn test_trim_extension() {
assert_eq!(trim_extension("test.taco"), Some(String::from("test")))
}
#[test]
fn test_trim_extension_invalid() {
assert_eq!(trim_extension("test"), None)
}
}