improvement78 Testcase for Error:DefineNotFound.

This commit is contained in:
damc 2023-02-07 18:04:27 +01:00
parent f98cb6c5d7
commit f0aa7c5a5c
2 changed files with 19 additions and 0 deletions

View File

@ -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] #[test]
#[allow(non_snake_case)] #[allow(non_snake_case)]
fn IEEE18002017_keywords_if2_13642005() { // {{{ fn IEEE18002017_keywords_if2_13642005() { // {{{

View File

@ -0,0 +1,3 @@
`A // Macro called without definition.