cea608tott: make test less shocking by having more cues as context

The contents of the current test for cea608tott can be a bit shocking
without context about the source.

This patch adds more cues to the test so that a reader just trying to
understand the elements has more context that this is a news program.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2249>
This commit is contained in:
Alicia Boya García 2025-05-18 13:07:36 +02:00
parent 236608f48e
commit c29841dc1e

View file

@ -33,8 +33,8 @@ fn test_parse() {
let buf = gst::Buffer::from_mut_slice(Vec::from(data));
assert_eq!(h.push(buf), Ok(gst::FlowSuccess::Ok));
// Check the first 4 output buffers
let expected: [(ClockTime, ClockTime, &'static str); 4] = [
// Check the first 10 output buffers
let expected: [(ClockTime, ClockTime, &'static str); 10] = [
(
15_048_366_666.nseconds(),
3_236_566_667.nseconds(),
@ -55,6 +55,36 @@ fn test_parse() {
2_235_566_667.nseconds(),
"even the fact I think\r\nhes a terrible human being.",
),
(
24_624_600_000.nseconds(),
2_102_100_000.nseconds(),
"But the choice on the other side\r\nis just as bad.",
),
(
26_726_700_000.nseconds(),
2_268_933_333.nseconds(),
"Trump is a\r\n\"terrible human being.\"",
),
(
29_696_333_333.nseconds(),
2_202_200_000.nseconds(),
"Those are the words\r\nof Mick Mulvaney,",
),
(
32_432_400_000.nseconds(),
3_236_566_666.nseconds(),
"the man Trump has chosen\r\nto be his new chief of staff.",
),
(
36_302_933_333.nseconds(),
2_635_966_667.nseconds(),
"Well speak with former\r\npresidential candidate",
),
(
38_938_900_000.nseconds(),
2_369_033_333.nseconds(),
"Ralph Nader\r\nabout Mulvaney,",
),
];
for (i, e) in expected.iter().enumerate() {