ppTests mv macro_comment
This commit is contained in:
parent
6f752c4cda
commit
3e8db79d51
@ -1111,9 +1111,9 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn macro_with_comment() {
|
||||
fn macro_comment() {
|
||||
let (ret, _) = preprocess(
|
||||
testfile_path("test13.sv"),
|
||||
testfile_path("macro_comment.sv"),
|
||||
&HashMap::new(),
|
||||
&[] as &[String],
|
||||
false,
|
||||
@ -1122,7 +1122,7 @@ mod tests {
|
||||
.unwrap();
|
||||
assert_eq!(
|
||||
ret.text(),
|
||||
testfile_contents("expected/macro_with_comment")
|
||||
testfile_contents("expected/macro_comment.sv")
|
||||
);
|
||||
}
|
||||
|
||||
|
2
sv-parser-pp/testcases/expected/macro_comment.sv
Normal file
2
sv-parser-pp/testcases/expected/macro_comment.sv
Normal file
@ -0,0 +1,2 @@
|
||||
`define A 42 // Comment
|
||||
interface i #(p = 42) (); endinterface
|
@ -1,3 +0,0 @@
|
||||
`define NAME 42 // Comment
|
||||
interface foo #(WIDTH = 42 ) ();
|
||||
endinterface
|
2
sv-parser-pp/testcases/macro_comment.sv
Normal file
2
sv-parser-pp/testcases/macro_comment.sv
Normal file
@ -0,0 +1,2 @@
|
||||
`define A 42 // Comment
|
||||
interface i #(p = `A) (); endinterface
|
@ -1,3 +0,0 @@
|
||||
`define NAME 42 // Comment
|
||||
interface foo #(WIDTH = `NAME) ();
|
||||
endinterface
|
Loading…
x
Reference in New Issue
Block a user