Skip to content

Commit 4262f07

Browse files
committed
Test comment parsing
1 parent 0d71f7f commit 4262f07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/roundtrip.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![cfg(feature = "std")]
22

3-
use gif::{ColorOutput, Decoder, Encoder, Frame};
3+
use gif::{ColorOutput, Decoder, Encoder, Frame, AnyExtension};
44

55
#[test]
66
fn round_trip() {
@@ -68,6 +68,7 @@ fn round_trip_from_image(original: &[u8]) {
6868

6969
let mut encoder = Encoder::new(vec![], width, height, &global_palette).unwrap();
7070
encoder.set_repeat(repeat).unwrap();
71+
encoder.write_raw_extension(AnyExtension(gif::Extension::Comment as _), &[b"hello"]).unwrap();
7172
for frame in &frames {
7273
encoder.write_frame(frame).unwrap();
7374
}

0 commit comments

Comments
 (0)