e2e test for a private torrent file serde
This commit is contained in:
parent
26d78ed2f0
commit
c13268dd7b
2 changed files with 8 additions and 0 deletions
1
crates/librqbit_core/src/resources/test/private.torrent
Normal file
1
crates/librqbit_core/src/resources/test/private.torrent
Normal 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
|
||||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue