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
10
11
12
use verso::library::normalise::{normalise_author, normalise_text};

#[test]
fn collapses_whitespace_and_case() {
    assert_eq!(normalise_text("  The  Time  Machine! "), "the time machine");
}

#[test]
fn normalises_authors() {
    assert_eq!(normalise_author("H. G. Wells"), "h g wells");
    assert_eq!(normalise_author("Wells, H. G."), "wells h g");
}