1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-11-24 16:11:00 +00:00

Fixed broken test

This commit is contained in:
Luro02 2020-08-11 09:45:21 +02:00
parent 7907f9b1f1
commit e41105afdd
No known key found for this signature in database
GPG key ID: B66FD4F74501A9CF

View file

@ -1,6 +1,6 @@
// The relevant issue: // The relevant issue:
// https://github.com/sile/hls_m3u8/issues/55 // https://github.com/sile/hls_m3u8/issues/55
use std::str::FromStr; use std::convert::TryFrom;
use hls_m3u8::tags::{ExtXMedia, VariantStream}; use hls_m3u8::tags::{ExtXMedia, VariantStream};
use hls_m3u8::types::{MediaType, StreamData, UFloat}; use hls_m3u8::types::{MediaType, StreamData, UFloat};
@ -13,7 +13,7 @@ fn parse() {
let file = include_str!("assets/issue_00055.m3u8"); let file = include_str!("assets/issue_00055.m3u8");
assert_eq!( assert_eq!(
MasterPlaylist::from_str(file).unwrap(), MasterPlaylist::try_from(file).unwrap(),
MasterPlaylist::builder() MasterPlaylist::builder()
.has_independent_segments(true) .has_independent_segments(true)
.media(vec![ .media(vec![