fn two_album_with_ordered_filenames() -> Result<()> {
        gst::init()?;
        let args = args(&[testcases()]);

        let playlist = Playlist::from(&args);
        let mut song = playlist.iter();
        assert_eq!(1, song.next().unwrap().1.track_number);
        assert_eq!(2, song.next().unwrap().1.track_number);
        assert_eq!(3, song.next().unwrap().1.track_number);
        assert_eq!(4, song.next().unwrap().1.track_number);
        Ok(())
    }
// When a directory is passed as an argument and the directory
// contains more than one subdirectory, the subdirs should be
// played in order (i.e. not start with track 1 from every album,
// go on to the track 2s etc.).
When a directory is passed as an argument and the directory
contains more than one subdirectory, the subdirs should be
played in order .
When a directory is passed as an argument and the directory contains more than one subdirectory the subdirs should be played in order .
fn two_album_with_ordered_filenames() -> Result<()> {
        gst::init()?;
        let args = args(&[testcases()]);
        let playlist = Playlist::from(&args);
        let mut song = playlist.iter();
        assert_eq!(1, song.next().unwrap().1.track_number);
        assert_eq!(2, song.next().unwrap().1.track_number);
        assert_eq!(3, song.next().unwrap().1.track_number);
        assert_eq!(4, song.next().unwrap().1.track_number);
        Ok(())
    }
fn two_album_with_ordered_filenames ( ) -> Result < ( ) > { gst :: init ( ) ? ; let args = args ( & [ testcases ( ) ] ) ; let playlist = Playlist :: from ( & args ) ; let mut song = playlist . iter ( ) ; assert_eq ! ( 1 song next ( ) unwrap ( ) 1 track_number ) ; assert_eq ! ( 2 song next ( ) unwrap ( ) 1 track_number ) ; assert_eq ! ( 3 song next ( ) unwrap ( ) 1 track_number ) ; assert_eq ! ( 4 song next ( ) unwrap ( ) 1 track_number ) ; Ok ( ( ) ) }
When a directory is passed as an argument and the directory
contains more than one subdirectory, the subdirs should be
played in order (i.e.
When a directory is passed as an argument and the directory contains more than one subdirectory the subdirs should be played in order ( i . e .