mirror of
https://github.com/edg-l/edgarluque.com.git
synced 2024-11-09 17:48:22 +00:00
oof
This commit is contained in:
parent
6408ddb6a3
commit
5cf7baad0c
|
@ -322,13 +322,13 @@ let data = nom_bencode::parse(b"d3:cow3:moo4:spam4:eggse").unwrap();
|
|||
let v = data.first().unwrap();
|
||||
|
||||
if let Value::Dictionary(dict) = v {
|
||||
let v = dict.get("cow".as_bytes()).unwrap();
|
||||
let v = dict.get(b"cow").unwrap();
|
||||
|
||||
if let Value::Bytes(data) = v {
|
||||
assert_eq!(data, b"moo");
|
||||
}
|
||||
|
||||
let v = dict.get("spam".as_bytes()).unwrap();
|
||||
let v = dict.get(b"spam").unwrap();
|
||||
if let Value::Bytes(data) = v {
|
||||
assert_eq!(data, b"eggs");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue