ppTests Add missing IEEE18002017_* tests.
This commit is contained in:
parent
d1e6f6e6af
commit
f927aee299
@ -898,6 +898,40 @@ mod tests {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[allow(non_snake_case)]
|
||||||
|
fn IEEE18002017_macro_argument_expansion() {
|
||||||
|
let (ret, _) = preprocess(
|
||||||
|
testfile_path("IEEE18002017_macro_argument_expansion.sv"),
|
||||||
|
&HashMap::new(),
|
||||||
|
&[] as &[String],
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
assert_eq!(
|
||||||
|
ret.text(),
|
||||||
|
testfile_contents("expected/IEEE18002017_macro_argument_expansion.sv")
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[allow(non_snake_case)]
|
||||||
|
fn IEEE18002017_macro_delimit_tokens() {
|
||||||
|
let (ret, _) = preprocess(
|
||||||
|
testfile_path("IEEE18002017_macro_delimit_tokens.sv"),
|
||||||
|
&HashMap::new(),
|
||||||
|
&[] as &[String],
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
assert_eq!(
|
||||||
|
ret.text(),
|
||||||
|
testfile_contents("expected/IEEE18002017_macro_delimit_tokens.sv")
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
fn IEEE18002017_macro_mix_quotes() {
|
fn IEEE18002017_macro_mix_quotes() {
|
||||||
@ -932,6 +966,40 @@ mod tests {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[allow(non_snake_case)]
|
||||||
|
fn IEEE18002017_macro_with_defaults() {
|
||||||
|
let (ret, _) = preprocess(
|
||||||
|
testfile_path("IEEE18002017_macro_with_defaults.sv"),
|
||||||
|
&HashMap::new(),
|
||||||
|
&[] as &[String],
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
assert_eq!(
|
||||||
|
ret.text(),
|
||||||
|
testfile_contents("expected/IEEE18002017_macro_with_defaults.sv")
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[allow(non_snake_case)]
|
||||||
|
fn IEEE18002017_macro_without_defaults() {
|
||||||
|
let (ret, _) = preprocess(
|
||||||
|
testfile_path("IEEE18002017_macro_without_defaults.sv"),
|
||||||
|
&HashMap::new(),
|
||||||
|
&[] as &[String],
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
assert_eq!(
|
||||||
|
ret.text(),
|
||||||
|
testfile_contents("expected/IEEE18002017_macro_without_defaults.sv")
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn ifdef_nested() {
|
fn ifdef_nested() {
|
||||||
let (ret, _) = preprocess(
|
let (ret, _) = preprocess(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user