caesura 0.20.0

An all-in-one command line tool to **transcode FLAC** audio files and **upload to gazelle** based indexers/trackers.
Documentation
use super::super::*;
use std::collections::BTreeSet;

#[test]
fn join_humanized_with_slice() {
    let strings = vec!["apple", "banana", "cherry"];
    let result = join_humanized(&strings);
    assert_eq!(result, "apple, banana and cherry");

    let strings = vec!["apple"];
    let result = join_humanized(&strings);
    assert_eq!(result, "apple");

    let strings: Vec<&str> = vec![];
    let result = join_humanized(&strings);
    assert_eq!(result, "");
}

#[test]
fn join_humanized_with_btreeset() {
    let set: BTreeSet<&str> = BTreeSet::from(["apple", "banana", "cherry"]);
    let result = join_humanized(&set);
    assert_eq!(result, "apple, banana and cherry");

    let set: BTreeSet<&str> = BTreeSet::from(["apple"]);
    let result = join_humanized(&set);
    assert_eq!(result, "apple");

    let set: BTreeSet<&str> = BTreeSet::new();
    let result = join_humanized(&set);
    assert_eq!(result, "");
}