scan 0.1.0

Crate for tokenizing and parsing delimitted input
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate scan;

use scan::{Scan, from_path};

#[test]
fn build_from_path() {
    let filename = "tests/spaces.txt";
    let mut input = from_path(&filename).unwrap();
    let first = input.next_str().unwrap().unwrap();
    assert!("one" == first);
    let second = input.next::<String>().unwrap();
    assert_eq!("more", second);
}