added test for rlp iterator and *.swp to gitignore
This commit is contained in:
parent
3097a47a9f
commit
a4db001a6a
3
.gitignore
vendored
3
.gitignore
vendored
@ -11,3 +11,6 @@ Cargo.lock
|
||||
|
||||
# Generated by Cargo
|
||||
/target/
|
||||
|
||||
# Vim
|
||||
*.swp
|
||||
|
@ -245,6 +245,9 @@ mod tests {
|
||||
assert!(dog.is_value());
|
||||
assert_eq!(dog.bytes, &[0x83, b'd', b'o', b'g']);
|
||||
|
||||
let none = iter.next();
|
||||
assert!(none.is_none());
|
||||
|
||||
let cat_again = rlp.at(0).unwrap();
|
||||
assert!(cat_again.is_value());
|
||||
assert_eq!(cat_again.bytes, &[0x83, b'c', b'a', b't']);
|
||||
|
Loading…
Reference in New Issue
Block a user