Fix test.

This commit is contained in:
Stephen Chung 2022-12-02 17:37:35 +08:00
parent b4278fa251
commit feb764a203

View File

@ -77,6 +77,9 @@ fn test_comments_doc() -> Result<(), Box<EvalAltResult>> {
assert_eq!( assert_eq!(
ast.iter_functions().next().unwrap().comments[0], ast.iter_functions().next().unwrap().comments[0],
#[cfg(feature = "no_position")]
"/** Hello world\n ** how are you?\n **/",
#[cfg(not(feature = "no_position"))]
"/** Hello world\n** how are you?\n**/" "/** Hello world\n** how are you?\n**/"
); );