diff options
| -rw-r--r-- | src/parser.rs | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/src/parser.rs b/src/parser.rs index 97fbcf0..2e4bf3e 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -1548,13 +1548,17 @@ not-a-kind <play> <Nop>  map <not-a-button> <Nop>  ";          let result = map_group().easy_parse(State::new(text)).map(|t| t.0); +        let error = result.unwrap_err();          assert_eq!( -            result.unwrap_err().position, +            error.position,              SourcePosition {                  line: 2,                  column: 6,              }          ); +        assert!(error.errors.contains( +            &easy::Error::Unexpected('n'.into()), +        ));      }  } | 
