Fix tests

This commit is contained in:
Amanieu d'Antras 2020-05-08 18:14:06 +01:00
parent ac1fb93fce
commit 46db0dfe8c
2 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,7 @@
use super::*;
fn same(fmt: &'static str, p: &[Piece<'static>]) {
let parser = Parser::new(fmt, None, vec![], false, ParseMode::Format);
let parser = Parser::new(fmt, None, None, false, ParseMode::Format);
assert_eq!(parser.collect::<Vec<Piece<'static>>>(), p);
}
@ -20,7 +20,7 @@ fn fmtdflt() -> FormatSpec<'static> {
}
fn musterr(s: &str) {
let mut p = Parser::new(s, None, vec![], false, ParseMode::Format);
let mut p = Parser::new(s, None, None, false, ParseMode::Format);
p.next();
assert!(!p.errors.is_empty());
}

View file

@ -1,3 +1,4 @@
// no-system-llvm
// revisions: x86_64 i686
// assembly-output: emit-asm
// compile-flags: -O