Add another test

This commit is contained in:
kageru 2020-07-23 21:12:44 +02:00
parent bc44cc23ae
commit f11e3b21ac
Signed by: kageru
GPG Key ID: 8282A2BEA4ADA3D2

View File

@ -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")
}
}
}