ppTests Use rearrange tests alphabetically after renames.
This commit is contained in:
parent
026e606136
commit
4f1b566e2b
@ -1212,6 +1212,22 @@ mod tests {
|
|||||||
assert_eq!(format!("{:?}", ret), "Err(IncludeLine)");
|
assert_eq!(format!("{:?}", ret), "Err(IncludeLine)");
|
||||||
} // }}}
|
} // }}}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn macro_arguments() { // {{{
|
||||||
|
let (ret, _) = preprocess(
|
||||||
|
testfile_path("macro_arguments.sv"),
|
||||||
|
&HashMap::new(),
|
||||||
|
&[] as &[String],
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
assert_eq!(
|
||||||
|
ret.text(),
|
||||||
|
testfile_contents("expected/macro_arguments.sv")
|
||||||
|
);
|
||||||
|
} // }}}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn macro_basic() { // {{{
|
fn macro_basic() { // {{{
|
||||||
let (ret, _) = preprocess(
|
let (ret, _) = preprocess(
|
||||||
@ -1244,6 +1260,22 @@ mod tests {
|
|||||||
);
|
);
|
||||||
} // }}}
|
} // }}}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn macro_delimiters() { // {{{
|
||||||
|
let (ret, _) = preprocess(
|
||||||
|
testfile_path("macro_delimiters.sv"),
|
||||||
|
&HashMap::new(),
|
||||||
|
&[] as &[String],
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
)
|
||||||
|
.unwrap();
|
||||||
|
assert_eq!(
|
||||||
|
ret.text(),
|
||||||
|
testfile_contents("expected/macro_delimiters.sv")
|
||||||
|
);
|
||||||
|
} // }}}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn macro_identifier() { // {{{
|
fn macro_identifier() { // {{{
|
||||||
let (ret, _) = preprocess(
|
let (ret, _) = preprocess(
|
||||||
@ -1293,38 +1325,6 @@ mod tests {
|
|||||||
);
|
);
|
||||||
} // }}}
|
} // }}}
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn macro_parameters_defaultvalue() { // {{{
|
|
||||||
let (ret, _) = preprocess(
|
|
||||||
testfile_path("macro_parameters_defaultvalue.sv"),
|
|
||||||
&HashMap::new(),
|
|
||||||
&[] as &[String],
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
)
|
|
||||||
.unwrap();
|
|
||||||
assert_eq!(
|
|
||||||
ret.text(),
|
|
||||||
testfile_contents("expected/macro_parameters_defaultvalue.sv")
|
|
||||||
);
|
|
||||||
} // }}}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn macro_parameters_multiline() { // {{{
|
|
||||||
let (ret, _) = preprocess(
|
|
||||||
testfile_path("macro_parameters_multiline.sv"),
|
|
||||||
&HashMap::new(),
|
|
||||||
&[] as &[String],
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
)
|
|
||||||
.unwrap();
|
|
||||||
assert_eq!(
|
|
||||||
ret.text(),
|
|
||||||
testfile_contents("expected/macro_parameters_multiline.sv")
|
|
||||||
);
|
|
||||||
} // }}}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn macro_recursion_direct() { // {{{
|
fn macro_recursion_direct() { // {{{
|
||||||
let ret = preprocess(
|
let ret = preprocess(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user