ppTests Rename test2.svh -> included.svh

- 19 pass, 9 fail due to whitespace.
- All failures are suspected bugs.
This commit is contained in:
damc 2022-07-21 13:51:51 +02:00
parent f927aee299
commit bd1fc19ee8
8 changed files with 12 additions and 12 deletions

View File

@ -1095,14 +1095,14 @@ mod tests {
assert_eq!(ret.origin(10).unwrap().1, 10);
assert_eq!(
ret.origin(60).unwrap().0,
&PathBuf::from(testfile_path("test2.svh"))
&PathBuf::from(testfile_path("included.svh"))
);
assert_eq!(ret.origin(60).unwrap().1, 74);
assert_eq!(
ret.origin(80).unwrap().0,
&PathBuf::from(testfile_path("include_basic.sv"))
);
assert_eq!(ret.origin(80).unwrap().1, 60);
assert_eq!(ret.origin(80).unwrap().1, 63);
}
#[test]
@ -1144,14 +1144,14 @@ mod tests {
assert_eq!(ret.origin(10).unwrap().1, 10);
assert_eq!(
ret.origin(50).unwrap().0,
&PathBuf::from(testfile_path("test2.svh"))
&PathBuf::from(testfile_path("included.svh"))
);
assert_eq!(ret.origin(50).unwrap().1, 73);
assert_eq!(
ret.origin(70).unwrap().0,
&PathBuf::from(testfile_path("include_origin.sv"))
);
assert_eq!(ret.origin(70).unwrap().1, 50);
assert_eq!(ret.origin(70).unwrap().1, 53);
}
#[test]
@ -1176,14 +1176,14 @@ mod tests {
assert_eq!(ret.origin(10).unwrap().1, 10);
assert_eq!(
ret.origin(50).unwrap().0,
&PathBuf::from(testfile_path("test2.svh"))
&PathBuf::from(testfile_path("included.svh"))
);
assert_eq!(ret.origin(50).unwrap().1, 73);
assert_eq!(
ret.origin(70).unwrap().0,
&PathBuf::from(testfile_path("include_sameline_comment.sv"))
);
assert_eq!(ret.origin(70).unwrap().1, 50);
assert_eq!(ret.origin(70).unwrap().1, 53);
}
#[test]

View File

@ -1,4 +1,4 @@
module and_op (a, b, c);
// a
`include "test2.svh"
`include "included.svh"
endmodule

View File

@ -1,3 +1,3 @@
module and_op (a, b, c);
`include "test2.svh"
`include "included.svh"
endmodule

View File

@ -1,3 +1,3 @@
module and_op (a, b, c);
`include "test2.svh"
`include "included.svh"
endmodule

View File

@ -1,3 +1,3 @@
module and_op (a, b, c);
`include "test2.svh" // comment
`include "included.svh" // comment
endmodule

View File

@ -1,3 +1,3 @@
module and_op (a, b, c);
`include "test2.svh" `include "test2.svh"
`include "included.svh" `include "included.svh"
endmodule

View File

@ -1,2 +1,2 @@
module and_op (a, b, c);
`include "test2.svh" endmodule
`include "included.svh" endmodule