e2e test for a private torrent file serde

This commit is contained in:
Igor Katson 2025-01-13 16:07:04 +00:00
parent 26d78ed2f0
commit c13268dd7b
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1 @@
d10:created by20:qBittorrent v4.4.3.113:creation datei1736784212e4:infod6:lengthi2e4:name7:private12:piece lengthi16384e6:pieces20:åúDò³µS¶s`Ð}]‘ÿ^7:privatei1eee

View file

@ -509,4 +509,11 @@ mod tests {
}
}
}
#[test]
fn test_private_real_torrent() {
let buf = include_bytes!("resources/test/private.torrent");
let torrent: TorrentMetaV1Borrowed = torrent_from_bytes(buf).unwrap();
assert!(torrent.info.private);
}
}