diff --git a/tests/comments.rs b/tests/comments.rs index 16ed38cf..682ac467 100644 --- a/tests/comments.rs +++ b/tests/comments.rs @@ -77,6 +77,9 @@ fn test_comments_doc() -> Result<(), Box> { assert_eq!( 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**/" );