diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-02-12 20:43:43 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-02-12 20:43:43 +0100 |
commit | b1f9cf99bc39c5f5e1ca68acd75c4ab845b097e8 (patch) | |
tree | ef89803076d9b2280dd79240042b78eb51634099 | |
parent | 5d04c364414699f7a2a0f16383fb29e68b4fdca3 (diff) |
tests: Add a test for multiline comments in enum variants.
-rw-r--r-- | tests/expectations/tests/enum-doc-bitfield.rs | 5 | ||||
-rw-r--r-- | tests/expectations/tests/enum-doc-mod.rs | 5 | ||||
-rw-r--r-- | tests/expectations/tests/enum-doc-rusty.rs | 5 | ||||
-rw-r--r-- | tests/expectations/tests/enum-doc.rs | 5 | ||||
-rw-r--r-- | tests/headers/enum-doc.h | 7 |
5 files changed, 27 insertions, 0 deletions
diff --git a/tests/expectations/tests/enum-doc-bitfield.rs b/tests/expectations/tests/enum-doc-bitfield.rs index 550286a2..081b39ec 100644 --- a/tests/expectations/tests/enum-doc-bitfield.rs +++ b/tests/expectations/tests/enum-doc-bitfield.rs @@ -12,6 +12,11 @@ pub const B_VAR_C: B = B(2); pub const B_VAR_D: B = B(3); /// < Document field with following exclamation pub const B_VAR_E: B = B(4); +/// Document field with preceeding star, with a loong long multiline +/// comment. +/// +/// Very interesting documentation, definitely. +pub const B_VAR_F: B = B(5); impl ::std::ops::BitOr<B> for B { type Output = Self; #[inline] diff --git a/tests/expectations/tests/enum-doc-mod.rs b/tests/expectations/tests/enum-doc-mod.rs index 8cf7d323..cb10bb3d 100644 --- a/tests/expectations/tests/enum-doc-mod.rs +++ b/tests/expectations/tests/enum-doc-mod.rs @@ -15,4 +15,9 @@ pub mod B { pub const VAR_D: Type = 3; /// < Document field with following exclamation pub const VAR_E: Type = 4; + /// Document field with preceeding star, with a loong long multiline + /// comment. + /// + /// Very interesting documentation, definitely. + pub const VAR_F: Type = 5; } diff --git a/tests/expectations/tests/enum-doc-rusty.rs b/tests/expectations/tests/enum-doc-rusty.rs index 9f47cc4b..2a57fb64 100644 --- a/tests/expectations/tests/enum-doc-rusty.rs +++ b/tests/expectations/tests/enum-doc-rusty.rs @@ -16,4 +16,9 @@ pub enum B { VAR_D = 3, /// < Document field with following exclamation VAR_E = 4, + /// Document field with preceeding star, with a loong long multiline + /// comment. + /// + /// Very interesting documentation, definitely. + VAR_F = 5, } diff --git a/tests/expectations/tests/enum-doc.rs b/tests/expectations/tests/enum-doc.rs index 8b552d29..e57728fb 100644 --- a/tests/expectations/tests/enum-doc.rs +++ b/tests/expectations/tests/enum-doc.rs @@ -12,5 +12,10 @@ pub const B_VAR_C: B = 2; pub const B_VAR_D: B = 3; /// < Document field with following exclamation pub const B_VAR_E: B = 4; +/// Document field with preceeding star, with a loong long multiline +/// comment. +/// +/// Very interesting documentation, definitely. +pub const B_VAR_F: B = 5; /// Document enum pub type B = u32; diff --git a/tests/headers/enum-doc.h b/tests/headers/enum-doc.h index 53a91201..58e2c69e 100644 --- a/tests/headers/enum-doc.h +++ b/tests/headers/enum-doc.h @@ -8,4 +8,11 @@ enum B { VAR_C = 2, VAR_D = 3, /**< Document field with following star */ VAR_E = 4, /*!< Document field with following exclamation */ + /** + * Document field with preceeding star, with a loong long multiline + * comment. + * + * Very interesting documentation, definitely. + */ + VAR_F, }; |