14 lines
342 B
Rust
14 lines
342 B
Rust
use testparser::*;
|
|
|
|
fn main() {
|
|
let mut context = p_context_new(b"abcdef");
|
|
assert_eq!(P_SUCCESS, p_parse(&mut context));
|
|
println!("pass1");
|
|
p_context_delete(context);
|
|
|
|
let mut context = p_context_new(b"defabcdef");
|
|
assert_eq!(P_SUCCESS, p_parse(&mut context));
|
|
println!("pass2");
|
|
p_context_delete(context);
|
|
}
|