ppTests rm whitespace_directives

- Replacing with more thorough tests.
This commit is contained in:
damc 2022-07-26 11:20:39 +02:00
parent 4d647bf72d
commit fc26dbf341
3 changed files with 0 additions and 53 deletions

View File

@ -1482,23 +1482,4 @@ mod tests {
); );
assert_eq!(format!("{:?}", ret), "Err(ExceedRecursiveLimit)"); 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")
);
} // }}}
} }

View File

@ -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

View File

@ -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