ppTests rm whitespace_directives
- Replacing with more thorough tests.
This commit is contained in:
parent
4d647bf72d
commit
fc26dbf341
@ -1482,23 +1482,4 @@ mod tests {
|
||||
);
|
||||
assert_eq!(format!("{:?}", ret), "Err(ExceedRecursiveLimit)");
|
||||
} // }}}
|
||||
|
||||
// Check that preprocess() doesn't introduce extra whitespace within and
|
||||
// around compiler directives.
|
||||
#[test]
|
||||
fn whitespace_directives() { // {{{
|
||||
let include_paths = [testfile_path("")];
|
||||
let (ret, _) = preprocess(
|
||||
testfile_path("whitespace_directives.sv"),
|
||||
&HashMap::new(),
|
||||
&include_paths,
|
||||
false,
|
||||
false,
|
||||
)
|
||||
.unwrap();
|
||||
assert_eq!(
|
||||
ret.text(),
|
||||
testfile_contents("expected/whitespace_directives.sv")
|
||||
);
|
||||
} // }}}
|
||||
}
|
||||
|
@ -1,17 +0,0 @@
|
||||
//top
|
||||
`resetall
|
||||
`timescale 10 us / 100 ns
|
||||
`default_nettype wire
|
||||
//first
|
||||
`default_nettype none//middle
|
||||
//last
|
||||
`unconnected_drive pull0
|
||||
`unconnected_drive pull1
|
||||
`nounconnected_drive
|
||||
`celldefine
|
||||
`endcelldefine
|
||||
`pragma foo
|
||||
`pragma foo bar
|
||||
`line 5 "foo" 0
|
||||
`begin_keywords "1800-2017"
|
||||
`end_keywords
|
@ -1,17 +0,0 @@
|
||||
//top
|
||||
`resetall
|
||||
`timescale 10 us / 100 ns
|
||||
`default_nettype wire
|
||||
//first
|
||||
`default_nettype none//middle
|
||||
//last
|
||||
`unconnected_drive pull0
|
||||
`unconnected_drive pull1
|
||||
`nounconnected_drive
|
||||
`celldefine
|
||||
`endcelldefine
|
||||
`pragma foo
|
||||
`pragma foo bar
|
||||
`line 5 "foo" 0
|
||||
`begin_keywords "1800-2017"
|
||||
`end_keywords
|
Loading…
x
Reference in New Issue
Block a user