macron-input 0.1.1

Reads user input lines from the console
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
extern crate macron_input;  use macron_input::input;

#[test]
fn test_input() {
    let mut input = input!("Enter in order '0', '1', '2': ");

    for i in 0..=2 {
        if let Ok(text) = input.next().unwrap() {
            assert_eq!(text, format!("{i}"));
        }
    }
}