Skip to content

Commit

Permalink
test: fix assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
trueChazza committed Feb 15, 2024
1 parent 8a7aea5 commit cfb5ff1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/hls_playlist_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule HlsPlaylistTest do
@media_path "dev/sample__1080__libx264__ac3__30s__video.mp4"

test "get duration" do
assert HlsPlaylist.get_duration(@media_path) == 30.016
assert HlsPlaylist.get_duration(@media_path) == 30.01
end

test "get keyframes" do
Expand All @@ -30,7 +30,7 @@ defmodule HlsPlaylistTest do
3.866666,
4.166667,
3.133333,
2.582667
2.576667
]
end

Expand Down Expand Up @@ -58,7 +58,7 @@ defmodule HlsPlaylistTest do
http://some-url&some-query=param&segment=5
#EXTINF:3.133333,
http://some-url&some-query=param&segment=6
#EXTINF:2.582667,
#EXTINF:2.576667,
http://some-url&some-query=param&segment=7
#EXT-X-ENDLIST\
"""
Expand Down

0 comments on commit cfb5ff1

Please sign in to comment.