verso-reader 0.1.0

A terminal EPUB reader with vim navigation, a Kindle-style library, and Markdown highlight export
Documentation
1
2
3
4
5
6
7
8
9
use verso::library::hashing::sha256_file;

#[test]
fn hashes_time_machine_stably() {
    let h1 = sha256_file(std::path::Path::new("tests/fixtures/time-machine.epub")).unwrap();
    let h2 = sha256_file(std::path::Path::new("tests/fixtures/time-machine.epub")).unwrap();
    assert_eq!(h1, h2);
    assert_eq!(h1.len(), 64);
}