@@ -14,7 +14,7 @@ import XCTest
1414final class MarkupTreeDumperTests : XCTestCase {
1515 func testDumpEverything( ) {
1616 let expectedDump = """
17- Document @1:1-39 :90 Root # \( everythingDocument. raw. metadata. id. rootId) #0
17+ Document @1:1-42 :90 Root # \( everythingDocument. raw. metadata. id. rootId) #0
1818 ├─ Heading @1:1-1:9 #1 level: 1
1919 │ └─ Text @1:3-1:9 #2 " Header "
2020 ├─ Paragraph @3:1-3:65 #3
@@ -55,37 +55,44 @@ final class MarkupTreeDumperTests: XCTestCase {
5555 ├─ BlockQuote @13:1-13:13 #38
5656 │ └─ Paragraph @13:3-13:13 #39
5757 │ └─ Text @13:3-13:13 #40 " BlockQuote "
58- ├─ CodeBlock @15:1-19:4 #41 language: swift
58+ ├─ OrderedList @15:1-17:1 #41 startIndex: 2
59+ │ ├─ ListItem @15:1-15:9 #42
60+ │ │ └─ Paragraph @15:4-15:9 #43
61+ │ │ └─ Text @15:4-15:9 #44 " flour "
62+ │ └─ ListItem @16:1-17:1 #45
63+ │ └─ Paragraph @16:4-16:9 #46
64+ │ └─ Text @16:4-16:9 #47 " sugar "
65+ ├─ CodeBlock @18:1-22:4 #48 language: swift
5966 │ func foo() {
6067 │ let x = 1
6168 │ }
62- ├─ CodeBlock @21 :5-22 :1 #42 language: none
69+ ├─ CodeBlock @24 :5-25 :1 #49 language: none
6370 │ // Is this real code? Or just fantasy?
64- ├─ Paragraph @23 :1-23 :31 #43
65- │ ├─ Text @23 :1-23 :12 #44 " This is an "
66- │ ├─ Link @23 :12-23 :30 #45 destination: " topic://autolink "
67- │ │ └─ Text @23 :13-23 :29 #46 " topic://autolink "
68- │ └─ Text @23 :30-23 :31 #47 " . "
69- ├─ ThematicBreak @25 :1-26 :1 #48
70- ├─ HTMLBlock @27 :1-29 :5 #49
71+ ├─ Paragraph @26 :1-26 :31 #50
72+ │ ├─ Text @26 :1-26 :12 #51 " This is an "
73+ │ ├─ Link @26 :12-26 :30 #52 destination: " topic://autolink "
74+ │ │ └─ Text @26 :13-26 :29 #53 " topic://autolink "
75+ │ └─ Text @26 :30-26 :31 #54 " . "
76+ ├─ ThematicBreak @28 :1-29 :1 #55
77+ ├─ HTMLBlock @30 :1-32 :5 #56
7178 │ <a href= " foo.png " >
7279 │ An HTML Block.
7380 │ </a>
74- ├─ Paragraph @31 :1-31 :33 #50
75- │ ├─ Text @31 :1-31 :14 #51 " This is some "
76- │ ├─ InlineHTML @31 :14-31 :17 #52 <p>
77- │ ├─ Text @31 :17-31 :28 #53 " inline html "
78- │ ├─ InlineHTML @31 :28-31 :32 #54 </p>
79- │ └─ Text @31 :32-31 :33 #55 " . "
80- ├─ Paragraph @33 :1-34 :6 #56
81- │ ├─ Text @33 :1-33 :7 #57 " line "
82- │ ├─ LineBreak #58
83- │ └─ Text @34 :1-34 :6 #59 " break "
84- ├─ Paragraph @36 :1-37 :6 #60
85- │ ├─ Text @36 :1-36 :5 #61 " soft "
86- │ ├─ SoftBreak #62
87- │ └─ Text @37 :1-37 :6 #63 " break "
88- └─ HTMLBlock @39 :1-39 :90 #64
81+ ├─ Paragraph @34 :1-34 :33 #57
82+ │ ├─ Text @34 :1-34 :14 #58 " This is some "
83+ │ ├─ InlineHTML @34 :14-34 :17 #59 <p>
84+ │ ├─ Text @34 :17-34 :28 #60 " inline html "
85+ │ ├─ InlineHTML @34 :28-34 :32 #61 </p>
86+ │ └─ Text @34 :32-34 :33 #62 " . "
87+ ├─ Paragraph @36 :1-37 :6 #63
88+ │ ├─ Text @36 :1-36 :7 #64 " line "
89+ │ ├─ LineBreak #65
90+ │ └─ Text @37 :1-37 :6 #66 " break "
91+ ├─ Paragraph @39 :1-40 :6 #67
92+ │ ├─ Text @39 :1-39 :5 #68 " soft "
93+ │ ├─ SoftBreak #69
94+ │ └─ Text @40 :1-40 :6 #70 " break "
95+ └─ HTMLBlock @42 :1-42 :90 #71
8996 <!-- Copyright (c) 2021 Apple Inc and the Swift Project authors. All Rights Reserved. -->
9097 """
9198 print ( everythingDocument. debugDescription ( options: [ . printEverything] ) )
0 commit comments