flexi-parse 0.11.0

Simple, flexible parsing
use crate::parse;
use crate::Punct;

use super::scan;

#[test]
fn multi_part() {
    parse::<Punct!["++", "-", "$"]>(scan("++-$")).unwrap();
}

#[test]
fn joint() {
    parse::<Punct!["<="]>(scan("<=")).unwrap();
}

#[test]
fn joint_fail() {
    parse::<Punct!["+="]>(scan("+ =")).unwrap_err();
}