()
| 149 | mod tests { |
| 150 | #[test] |
| 151 | fn commit_read_works() { |
| 152 | let bytes = include_bytes!("../../fixtures/commit"); |
| 153 | let commit = super::Commit::load(&mut bytes.as_ref()).expect("oh no"); |
| 154 | let message = std::str::from_utf8(&commit.message).expect("not utf8"); |
| 155 | assert_eq!(message, "initial commit\n\n"); |
| 156 | } |
| 157 | } |