// RUN: %target-swift-ide-test -print-comments -source-filename %S/Inputs/comment_extensions.swift -comments-xml-schema %S/../../bindings/xml/comment-xml-schema.rng | %FileCheck %s // REQUIRES: libxml2 // Content is in separate file in ./Inputs due to the "requires" keyword getting // recognized by lit. // CHECK: {{.*}}DocCommentAsXML=[attention()s:14swift_ide_test9attentionyyFfunc attention()This function is so hip and exciting, it can’t be trusted.] // CHECK: {{.*}}DocCommentAsXML=[author()s:14swift_ide_test6authoryyFfunc author()Stephen] // CHECK: {{.*}}DocCommentAsXML=[authors()s:14swift_ide_test7authorsyyFfunc authors()HomerMarkJ.] // CHECK: {{.*}}DocCommentAsXML=[bug()s:14swift_ide_test3bugyyFfunc bug()rdar://problem/8675309] // CHECK: {{.*}}DocCommentAsXML=[complexity()s:14swift_ide_test10complexityyyFfunc complexity()O(n log2(n))] // CHECK: {{.*}}DocCommentAsXML=[copyright()s:14swift_ide_test9copyrightyyFfunc copyright()2015 Apple, Inc.] // CHECK: {{.*}}DocCommentAsXML=[date()s:14swift_ide_test4dateyyFfunc date()Thu Apr 23 22:38:09 PDT 2015] // CHECK: {{.*}}DocCommentAsXML=[experiment()s:14swift_ide_test10experimentyyFfunc experiment()Try some more. The strawberries taste like strawberries.] // CHECK: {{.*}}DocCommentAsXML=[Invariants:14swift_ide_test9InvariantVstruct Invariantx not nil] // CHECK: {{.*}}DocCommentAsXML=none // CHECK: {{.*}}DocCommentAsXML=[note()s:14swift_ide_test4noteyyFfunc note()This function is very hip and exciting.] // CHECK: {{.*}}DocCommentAsXML=[postcondition(_:)s:14swift_ide_test13postconditionyySizFfunc postcondition(_ x: inout Int)x is unchanged] // CHECK: {{.*}}DocCommentAsXML=none // CHECK: {{.*}}DocCommentAsXML=[precondition(_:)s:14swift_ide_test12preconditionyySiFfunc precondition(_ x: Int)x < 100] // CHECK: {{.*}}DocCommentAsXML=none // CHECK: {{.*}}DocCommentAsXML=[remark()s:14swift_ide_test6remarkyyFfunc remark()Always, no, never forget to check your references.] // CHECK: {{.*}}DocCommentAsXML=[remarks()s:14swift_ide_test7remarksyyFfunc remarks()Never let a bear approach you.] // CHECK: {{.*}}DocCommentAsXML=[requires()s:14swift_ide_test8requiresyyFfunc requires()explicit package name. Just kidding!] // CHECK: {{.*}}DocCommentAsXML=[see()s:14swift_ide_test3seeyyFfunc see()the pie (it’s very good).] CommentXMLValid // CHECK: {{.*}}DocCommentAsXML=[since()s:14swift_ide_test5sinceyyFfunc since()1809] // CHECK: {{.*}}DocCommentAsXML=[todo()s:14swift_ide_test4todoyyFfunc todo()beor not to be] // CHECK: {{.*}}DocCommentAsXML=[version()s:14swift_ide_test7versionyyFfunc version()Beta.] // CHECK: {{.*}}DocCommentAsXML=[warning()s:14swift_ide_test7warningyyFfunc warning()Share the road.] // CHECK: {{.*}}DocCommentAsXML=[imageWithEmptyURLAndBogusTitle()s:14swift_ide_test30imageWithEmptyURLAndBogusTitleyyFfunc imageWithEmptyURLAndBogusTitle()]]>] // CHECK: {{.*}}DocCommentAsXML=[imageTitleAndAlt()s:14swift_ide_test16imageTitleAndAltyyFfunc imageTitleAndAlt()Brief.]]>] // CHECK: {{.*}}DocCommentAsXML=[imageAlt()s:14swift_ide_test8imageAltyyFfunc imageAlt()Brief.]]>] // CHECK: {{.*}}DocCommentAsXML=[imageTitle()s:14swift_ide_test10imageTitleyyFfunc imageTitle()Brief.]]>] // CHECK: {{.*}}DocCommentAsXML=[urlWithQueryString()s:14swift_ide_test18urlWithQueryStringyyFfunc urlWithQueryString()Brief.Test a link] // CHECK: {{.*}}DocCommentAsXML=[imageWithAmpersandsInTitleAndAlt()s:14swift_ide_test32imageWithAmpersandsInTitleAndAltyyFfunc imageWithAmpersandsInTitleAndAlt()Brief.]]>]