Skip to content

Commit b1f9cf9

Browse files
committed
tests: Add a test for multiline comments in enum variants.
1 parent 5d04c36 commit b1f9cf9

File tree

5 files changed

+27
-0
lines changed

5 files changed

+27
-0
lines changed

tests/expectations/tests/enum-doc-bitfield.rs

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ pub const B_VAR_C: B = B(2);
1212
pub const B_VAR_D: B = B(3);
1313
/// < Document field with following exclamation
1414
pub const B_VAR_E: B = B(4);
15+
/// Document field with preceeding star, with a loong long multiline
16+
/// comment.
17+
///
18+
/// Very interesting documentation, definitely.
19+
pub const B_VAR_F: B = B(5);
1520
impl ::std::ops::BitOr<B> for B {
1621
type Output = Self;
1722
#[inline]

tests/expectations/tests/enum-doc-mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@ pub mod B {
1515
pub const VAR_D: Type = 3;
1616
/// < Document field with following exclamation
1717
pub const VAR_E: Type = 4;
18+
/// Document field with preceeding star, with a loong long multiline
19+
/// comment.
20+
///
21+
/// Very interesting documentation, definitely.
22+
pub const VAR_F: Type = 5;
1823
}

tests/expectations/tests/enum-doc-rusty.rs

+5
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ pub enum B {
1616
VAR_D = 3,
1717
/// < Document field with following exclamation
1818
VAR_E = 4,
19+
/// Document field with preceeding star, with a loong long multiline
20+
/// comment.
21+
///
22+
/// Very interesting documentation, definitely.
23+
VAR_F = 5,
1924
}

tests/expectations/tests/enum-doc.rs

+5
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,10 @@ pub const B_VAR_C: B = 2;
1212
pub const B_VAR_D: B = 3;
1313
/// < Document field with following exclamation
1414
pub const B_VAR_E: B = 4;
15+
/// Document field with preceeding star, with a loong long multiline
16+
/// comment.
17+
///
18+
/// Very interesting documentation, definitely.
19+
pub const B_VAR_F: B = 5;
1520
/// Document enum
1621
pub type B = u32;

tests/headers/enum-doc.h

+7
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@ enum B {
88
VAR_C = 2,
99
VAR_D = 3, /**< Document field with following star */
1010
VAR_E = 4, /*!< Document field with following exclamation */
11+
/**
12+
* Document field with preceeding star, with a loong long multiline
13+
* comment.
14+
*
15+
* Very interesting documentation, definitely.
16+
*/
17+
VAR_F,
1118
};

0 commit comments

Comments
 (0)