added test for rlp iterator and *.swp to gitignore

This commit is contained in:
debris 2015-11-25 03:01:47 +01:00
parent 3097a47a9f
commit a4db001a6a
2 changed files with 6 additions and 0 deletions

3
.gitignore vendored
View File

@ -11,3 +11,6 @@ Cargo.lock
# Generated by Cargo # Generated by Cargo
/target/ /target/
# Vim
*.swp

View File

@ -245,6 +245,9 @@ mod tests {
assert!(dog.is_value()); assert!(dog.is_value());
assert_eq!(dog.bytes, &[0x83, b'd', b'o', b'g']); 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(); let cat_again = rlp.at(0).unwrap();
assert!(cat_again.is_value()); assert!(cat_again.is_value());
assert_eq!(cat_again.bytes, &[0x83, b'c', b'a', b't']); assert_eq!(cat_again.bytes, &[0x83, b'c', b'a', b't']);