remediate 0.2.1

Library for thinking and learning
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::deck::{document::Document, Content, Deck};

#[test]
fn closure_gen() {
    let deck = Deck::from(Document::parse("• 12345678 ·A·a· | ·B·b·\n").unwrap());
    assert_eq!(
        deck.cards().get("12345678").unwrap().rems(),
        &vec![(
            0,
            vec![
                Content::Closure(("12345678".into(), "A".into()), "a".into()),
                Content::Text(" | ".into()),
                Content::Closure(("12345678".into(), "B".into()), "b".into())
            ]
        )]
    )
}