File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Tests/SwiftDocCTests/Indexing Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -561,6 +561,29 @@ final class RenderIndexTests: XCTestCase {
561
561
XCTAssertTrue ( try XCTUnwrap ( renderIndex. interfaceLanguages [ " swift " ] ) [ 0 ] . isBeta)
562
562
}
563
563
}
564
+
565
+ func testRenderIndexGenerationWithNamespaceNode( ) throws {
566
+ try testRenderIndexGenerationFromJSON ( """
567
+ {
568
+ " interfaceLanguages " : {
569
+ " occ " : [
570
+ {
571
+ " path " : " /documentation/framework/foo " ,
572
+ " title " : " Foo " ,
573
+ " type " : " namespace "
574
+ }
575
+ ]
576
+ },
577
+ " schemaVersion " : {
578
+ " major " : 0,
579
+ " minor " : 1,
580
+ " patch " : 0
581
+ }
582
+ }
583
+ """ ) { renderIndex in
584
+ XCTAssertTrue ( try XCTUnwrap ( renderIndex. interfaceLanguages [ " occ " ] ) [ 0 ] . type == " namespace " )
585
+ }
586
+ }
564
587
565
588
func makeRenderIndexJSONSingleNode( withOptionalProperty property: String ) -> String {
566
589
return """
You can’t perform that action at this time.
0 commit comments