Fix tests
This commit is contained in:
parent
ac1fb93fce
commit
46db0dfe8c
@ -1,7 +1,7 @@
|
|||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
fn same(fmt: &'static str, p: &[Piece<'static>]) {
|
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);
|
assert_eq!(parser.collect::<Vec<Piece<'static>>>(), p);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ fn fmtdflt() -> FormatSpec<'static> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn musterr(s: &str) {
|
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();
|
p.next();
|
||||||
assert!(!p.errors.is_empty());
|
assert!(!p.errors.is_empty());
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// no-system-llvm
|
||||||
// revisions: x86_64 i686
|
// revisions: x86_64 i686
|
||||||
// assembly-output: emit-asm
|
// assembly-output: emit-asm
|
||||||
// compile-flags: -O
|
// compile-flags: -O
|
||||||
|
Loading…
x
Reference in New Issue
Block a user