From feb764a20355c022aa892cf46729e02d09288c94 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Fri, 2 Dec 2022 17:37:35 +0800 Subject: [PATCH] Fix test. --- tests/comments.rs | 3 +++ 1 file changed, 3 insertions(+) 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**/" );