You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug found by @avwhite with a minimal reproducing example.
Should be able to fix this later today.
EDIT: Example is actually wrong since you should expect it to return Consumed due to spaces consuming one char. Updated with correct example (which needs to manually create a state or this wont work).
externcrate"parser-combinators" as parser;use parser::{many, any_char,Parser};use parser::primitives::{State,Consumed,SourcePosition};fnmain(){let state = State{position:SourcePosition{line:1,column:1},input:"",consumed:Consumed::Consumed};let result = many(any_char asfn(_) -> _).parse_state(state);assert!(result.is_ok());assert_eq!(result.unwrap().1.consumed, Consumed::Empty);}
The text was updated successfully, but these errors were encountered:
Bug found by @avwhite with a minimal reproducing example.
Should be able to fix this later today.
EDIT: Example is actually wrong since you should expect it to return Consumed due to spaces consuming one char. Updated with correct example (which needs to manually create a state or this wont work).
The text was updated successfully, but these errors were encountered: