diff --git a/src/lib.rs b/src/lib.rs index 1fe413e..00a2e69 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -345,7 +345,8 @@ OK"; 2:file: Brent Barkman & Maribeth Solomon/Sunless Sea (2015)/03 Submergio Viol.flac 3:file: Brent Barkman & Maribeth Solomon/Sunless Sea (2015)/08 Dark Sailing.flac 4:file: Brent Barkman & Maribeth Solomon/Sunless Sea (2015)/17 The Sea Does Not Forgive.flac -5:file: Brent Barkman & Maribeth Solomon/Sunless Sea (2015)/18 Hope Is an Anchor.flac"; +5:file: Brent Barkman & Maribeth Solomon/Sunless Sea (2015)/18 Hope Is an Anchor.flac +OK"; match parse_playlist(input.lines()) { Err(_) => panic!("Should not be an error"), @@ -361,5 +362,11 @@ OK"; ] ), } + + let input = "ACK [] {playlistinfo} something went wrong"; + match parse_playlist(input.lines()) { + Ok(_) => panic!("Should have failed"), + Err(e) => assert_eq!(e.message, "[] {playlistinfo} something went wrong") + } } }