Skip to content

Commit acc3731

Browse files
committed
Tests: Ignore TagLib TestMP4::testUpdateStco() for now
1 parent 3587ccc commit acc3731

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

tests/taglib/test_mp4.rs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,28 @@ fn test_is_empty() {
137137
}
138138

139139
#[test]
140+
#[ignore] // TODO: The atom parsing internals are not exposed yet
140141
fn test_update_stco() {
141-
todo!("We don't update stco atoms")
142+
let mut file = temp_file!("no-tags.3g2");
143+
144+
{
145+
let mut f = Mp4File::read_from(&mut file, ParseOptions::new()).unwrap();
146+
file.rewind().unwrap();
147+
148+
let mut tag = Ilst::default();
149+
tag.set_artist("X".repeat(3000));
150+
f.set_ilst(tag);
151+
152+
// Find and collect all `stco` offsets
153+
154+
f.save_to(&mut file).unwrap();
155+
}
156+
file.rewind().unwrap();
157+
{
158+
let _f = Mp4File::read_from(&mut file, ParseOptions::new()).unwrap();
159+
160+
// Find and collect all `stco` offsets, compare with previous
161+
}
142162
}
143163

144164
#[test]

0 commit comments

Comments
 (0)