mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-27 14:24:08 +00:00
fix test
This commit is contained in:
parent
3c817259e3
commit
dc563d9500
@ -555,7 +555,7 @@ mod tests {
|
||||
use super::*;
|
||||
|
||||
fn same(fmt: &'static str, p: &[Piece<'static>]) {
|
||||
let parser = Parser::new(fmt, syntax::ast::StrStyle::Cooked);
|
||||
let parser = Parser::new(fmt, None);
|
||||
assert!(parser.collect::<Vec<Piece<'static>>>() == p);
|
||||
}
|
||||
|
||||
@ -571,7 +571,7 @@ mod tests {
|
||||
}
|
||||
|
||||
fn musterr(s: &str) {
|
||||
let mut p = Parser::new(s, syntax::ast::StrStyle::Cooked);
|
||||
let mut p = Parser::new(s, None);
|
||||
p.next();
|
||||
assert!(!p.errors.is_empty());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user