@@ -21,6 +21,9 @@ object Test extends ScaladocModelTest {
21
21
22
22
/** This comment contains nested <strong>html<br> tags</strong> */
23
23
def quuz = ???
24
+
25
+ /** This comment contains a [[corge ,,link with a subscript title,,]] */
26
+ def corge = ???
24
27
}
25
28
"""
26
29
def scaladocSettings = " "
@@ -30,22 +33,26 @@ object Test extends ScaladocModelTest {
30
33
import access ._
31
34
32
35
val foo = root._class(" Foo" )
33
- val bar = foo._method(" bar" )
34
- val baz = foo._method(" baz" )
35
- val qux = foo._method(" qux" )
36
- val quux = foo._method(" quux" )
37
- val quuz = foo._method(" quuz" )
38
- println(foo.comment.get.short)
39
- println(bar.comment.get.short)
40
- println(baz.comment.get.short)
41
- println(qux.comment.get.short)
42
- println(quux.comment.get.short)
43
- println(quuz.comment.get.short)
44
- println(Page .inlineToStr(foo.comment.get.short))
45
- println(Page .inlineToStr(bar.comment.get.short))
46
- println(Page .inlineToStr(baz.comment.get.short))
47
- println(Page .inlineToStr(qux.comment.get.short))
48
- println(Page .inlineToStr(quux.comment.get.short))
49
- println(Page .inlineToStr(quuz.comment.get.short))
36
+
37
+ val fooStr = Page .inlineToStr(foo.comment.get.short)
38
+ assert(fooStr == " This comment contains superscript" , fooStr)
39
+
40
+ val barStr = Page .inlineToStr(foo._method(" bar" ).comment.get.short)
41
+ assert(barStr == " This comment contains subscript" , barStr)
42
+
43
+ val bazStr = Page .inlineToStr(foo._method(" baz" ).comment.get.short)
44
+ assert(bazStr == " This comment contains a link https://scala.epfl.ch/" , bazStr)
45
+
46
+ val quxStr = Page .inlineToStr(foo._method(" qux" ).comment.get.short)
47
+ assert(quxStr == " This comment contains an html tag" , quxStr)
48
+
49
+ val quuxStr = Page .inlineToStr(foo._method(" quux" ).comment.get.short)
50
+ assert(quuxStr == " This comment contains a single html tag" , quuxStr)
51
+
52
+ val quuzStr = Page .inlineToStr(foo._method(" quuz" ).comment.get.short)
53
+ assert(quuzStr == " This comment contains nested html tags" , quuzStr)
54
+
55
+ val corgeStr = Page .inlineToStr(foo._method(" corge" ).comment.get.short)
56
+ assert(corgeStr == " This comment contains a link with a subscript title" , corgeStr)
50
57
}
51
58
}
0 commit comments