improvement78 Testcase for Error:DefineNotFound.
This commit is contained in:
parent
f98cb6c5d7
commit
f0aa7c5a5c
@ -1081,6 +1081,22 @@ mod tests {
|
||||
};
|
||||
} // }}}
|
||||
|
||||
#[test]
|
||||
#[allow(non_snake_case)]
|
||||
fn err_DefineNotFound() { // {{{
|
||||
match preprocess_usualargs("err_DefineNotFound.sv").unwrap_err() {
|
||||
Error::DefineNotFound(identifier) => {
|
||||
assert_eq!(
|
||||
identifier,
|
||||
String::from("A")
|
||||
);
|
||||
}
|
||||
_ => {
|
||||
panic!("Error::DefineNotFound not raised.");
|
||||
}
|
||||
};
|
||||
} // }}}
|
||||
|
||||
#[test]
|
||||
#[allow(non_snake_case)]
|
||||
fn IEEE18002017_keywords_if2_13642005() { // {{{
|
||||
|
3
sv-parser-pp/testcases/err_DefineNotFound.sv
Normal file
3
sv-parser-pp/testcases/err_DefineNotFound.sv
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
`A // Macro called without definition.
|
||||
|
Loading…
x
Reference in New Issue
Block a user