From 87e35608f1ccb91f8f60c53bc4628f4449b4a2fc Mon Sep 17 00:00:00 2001 From: Danny Yoo Date: Thu, 9 Nov 2023 14:54:32 -0800 Subject: [PATCH] Adjusted test cases due to change in directive parsing. We changed the structure of the regex to be a little less flexible, so we adjust our test examples to match the updated format. --- i18n-helpers/src/bin/mdbook-xgettext.rs | 4 ++-- i18n-helpers/src/lib.rs | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/i18n-helpers/src/bin/mdbook-xgettext.rs b/i18n-helpers/src/bin/mdbook-xgettext.rs index 96368c7..9d68320 100644 --- a/i18n-helpers/src/bin/mdbook-xgettext.rs +++ b/i18n-helpers/src/bin/mdbook-xgettext.rs @@ -303,10 +303,10 @@ mod tests { ( "src/foo.md", " - + # How to Foo - + The first paragraph about Foo. Still the first paragraph. ", diff --git a/i18n-helpers/src/lib.rs b/i18n-helpers/src/lib.rs index a9c2a04..e959abf 100644 --- a/i18n-helpers/src/lib.rs +++ b/i18n-helpers/src/lib.rs @@ -1585,7 +1585,7 @@ def g(x): assert_eq!( extract_messages( " - + Hello world! " ) @@ -1606,8 +1606,8 @@ Hello world! assert_eq!( extract_messages( " - - + + Greetings! " ) @@ -1630,11 +1630,11 @@ Greetings! " before-no-comment - + Hello again, this is some text with a comment on it. - + after after-no-comment