test/mediainfo_awaywego_test.rb in mediainfo-0.5.1 vs test/mediainfo_awaywego_test.rb in mediainfo-0.6.0
- old
+ new
@@ -127,12 +127,12 @@
assert_equal 840, @info.video_height
assert_equal 840, @info.height
end
test "video Display aspect ratio" do
- assert_equal "2.25", @info.video_display_aspect_ratio
- assert_equal "2.25", @info.display_aspect_ratio
+ assert_equal "2.25:1", @info.video_display_aspect_ratio
+ assert_equal "2.25:1", @info.display_aspect_ratio
end
test "video frame rate" do
assert_equal "23.976 fps", @info.video_frame_rate
assert_equal 23.976, @info.fps
@@ -171,17 +171,31 @@
assert_equal "178 MiB (96%)", @info.video_stream_size
end
test "video encoded date" do
assert_kind_of Time, @info.video_encoded_date
- # assert_equal "UTC 2009-03-30 19:57:50", @info.video_encoded_date
end
test "video tagged date" do
assert_kind_of Time, @info.video_tagged_date
- # assert_equal "UTC 2009-03-30 19:57:57", @info.video_tagged_date
end
+
+ test "video color primaries" do
+ assert_equal \
+ "BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177",
+ @info.video_color_primaries
+ end
+
+ test "video transfer characteristics" do
+ assert_equal "BT.709-5, BT.1361", @info.video_transfer_characteristics
+ end
+
+ test "video matrix coefficients" do
+ assert_equal \
+ "BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177",
+ @info.video_matrix_coefficients
+ end
### AUDIO
test "audio stream id" do
assert_equal "1", @info.audio_stream_id
@@ -259,15 +273,13 @@
assert_nil @info.audio_interleave_duration
end
test "audio encoded date" do
assert_kind_of Time, @info.audio_encoded_date
- # assert_equal "UTC 2009-03-30 19:57:50", @info.audio_encoded_date
end
test "audio tagged date" do
assert_kind_of Time, @info.audio_tagged_date
- # assert_equal "UTC 2009-03-30 19:57:57", @info.audio_tagged_date
end
### IMAGE
mediainfo_test_not_an_image